Browse Source

FIX bug

tags/v1
Jasder 6 years ago
parent
commit
d5c41d69bf
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/controllers/repositories_controller.rb

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

@@ -2,7 +2,8 @@ class RepositoriesController < ApplicationController
include ApplicationHelper
include OperateProjectAbilityAble
before_action :require_login, only: %i[edit update create_file update_file delete_file sync_mirror]
before_action :find_project, :authorizate!, except: [:sync_mirror, :tags]
before_action :find_project, except: :tags
before_action :authorizate!, except: [:sync_mirror, :tags]
before_action :find_repository, only: %i[sync_mirror tags]
before_action :authorizate_user_can_edit_project!, only: %i[sync_mirror]


Loading…
Cancel
Save