scinote-web/app/permissions/repository_column.rb

10 lines
313 B
Ruby
Raw Normal View History

2019-07-12 22:43:54 +08:00
# frozen_string_literal: true
Canaid::Permissions.register_for(RepositoryColumn) do
# repository: update/delete field
# Tested in scope of RepositoryPermissions spec
can :manage_repository_column do |user, repository_column|
can_create_repository_columns?(user, repository_column.repository)
end
end