mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 14:45:56 +08:00
SCI-4300 sckip permission checking for list
This commit is contained in:
parent
a13a92c967
commit
81023f8c69
|
@ -4,7 +4,7 @@ module RepositoryColumns
|
|||
class ChecklistColumnsController < BaseColumnsController
|
||||
before_action :load_column, only: %i(update destroy items)
|
||||
before_action :check_create_permissions, only: :create
|
||||
before_action :check_manage_permissions, only: %i(update destroy items)
|
||||
before_action :check_manage_permissions, only: %i(update destroy)
|
||||
helper_method :delimiters
|
||||
|
||||
def create
|
||||
|
|
|
@ -4,7 +4,7 @@ module RepositoryColumns
|
|||
class ListColumnsController < BaseColumnsController
|
||||
before_action :load_column, only: %i(update destroy items)
|
||||
before_action :check_create_permissions, only: :create
|
||||
before_action :check_manage_permissions, only: %i(update destroy items)
|
||||
before_action :check_manage_permissions, only: %i(update destroy)
|
||||
helper_method :delimiters
|
||||
|
||||
def create
|
||||
|
|
|
@ -5,7 +5,7 @@ module RepositoryColumns
|
|||
include InputSanitizeHelper
|
||||
before_action :load_column, only: %i(update destroy items)
|
||||
before_action :check_create_permissions, only: :create
|
||||
before_action :check_manage_permissions, only: %i(update destroy items)
|
||||
before_action :check_manage_permissions, only: %i(update destroy)
|
||||
|
||||
def create
|
||||
service = RepositoryColumns::CreateColumnService
|
||||
|
|
Loading…
Reference in a new issue