mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
10 lines
313 B
Ruby
10 lines
313 B
Ruby
|
# 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
|