SCI-4300 sckip permission checking for list

This commit is contained in:
Miha Mencin 2020-01-27 14:27:46 +01:00
parent a13a92c967
commit 81023f8c69
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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