mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-06 21:24:23 +08:00
add permission check to repostiory show action [fixes SCI-2338]
This commit is contained in:
parent
1e4a975304
commit
12365b3f0f
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ class RepositoriesController < ApplicationController
|
|||
%i(repository_table_index export_repository parse_sheet import_records)
|
||||
before_action :check_team, only: %i(parse_sheet import_records)
|
||||
before_action :check_view_all_permissions, only: :index
|
||||
before_action :check_view_permissions, only: :export_repository
|
||||
before_action :check_view_permissions, only: %i(export_repository show)
|
||||
before_action :check_manage_permissions, only:
|
||||
%i(destroy destroy_modal rename_modal update)
|
||||
before_action :check_create_permissions, only:
|
||||
|
|
Loading…
Add table
Reference in a new issue