mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-11 08:51:32 +08:00
SCI-4300 sckip permission checking for list
This commit is contained in:
parent
a13a92c967
commit
81023f8c69
3 changed files with 3 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ module RepositoryColumns
|
||||||
class ChecklistColumnsController < BaseColumnsController
|
class ChecklistColumnsController < BaseColumnsController
|
||||||
before_action :load_column, only: %i(update destroy items)
|
before_action :load_column, only: %i(update destroy items)
|
||||||
before_action :check_create_permissions, only: :create
|
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
|
helper_method :delimiters
|
||||||
|
|
||||||
def create
|
def create
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ module RepositoryColumns
|
||||||
class ListColumnsController < BaseColumnsController
|
class ListColumnsController < BaseColumnsController
|
||||||
before_action :load_column, only: %i(update destroy items)
|
before_action :load_column, only: %i(update destroy items)
|
||||||
before_action :check_create_permissions, only: :create
|
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
|
helper_method :delimiters
|
||||||
|
|
||||||
def create
|
def create
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ module RepositoryColumns
|
||||||
include InputSanitizeHelper
|
include InputSanitizeHelper
|
||||||
before_action :load_column, only: %i(update destroy items)
|
before_action :load_column, only: %i(update destroy items)
|
||||||
before_action :check_create_permissions, only: :create
|
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
|
def create
|
||||||
service = RepositoryColumns::CreateColumnService
|
service = RepositoryColumns::CreateColumnService
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue