Browse Source

fix: createfile need profile completed

tags/v3.1.5^2^2
yystopf 4 years ago
parent
commit
0672a714a0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/controllers/repositories_controller.rb

+ 1
- 0
app/controllers/repositories_controller.rb View File

@@ -4,6 +4,7 @@ class RepositoriesController < ApplicationController
include Repository::LanguagesPercentagable
before_action :require_login, only: %i[edit update create_file update_file delete_file sync_mirror]
before_action :require_profile_completed, only: [:create_file]
before_action :load_repository
before_action :authorizate!, except: [:sync_mirror, :tags, :commit, :archive]
before_action :authorizate_user_can_edit_repo!, only: %i[sync_mirror]


Loading…
Cancel
Save