Browse Source

修改repositories的show页面

tags/v1
sylor_huang@126.com 6 years ago
parent
commit
11535bc459
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/repositories_controller.rb

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

@@ -4,7 +4,7 @@ class RepositoriesController < ApplicationController
before_action :require_login, only: %i[edit update create_file update_file delete_file sync_mirror]
before_action :find_project, except: :tags
before_action :authorizate!, except: [:sync_mirror, :tags]
before_action :find_repository, only: %i[sync_mirror tags show]
before_action :find_repository, only: %i[sync_mirror tags]
before_action :authorizate_user_can_edit_project!, only: %i[sync_mirror]
def show


Loading…
Cancel
Save