mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
space categorty management
This commit is contained in:
parent
a86d52388e
commit
4874d23f15
19 changed files with 915 additions and 40 deletions
|
@ -113,8 +113,8 @@ type PermissionsModel struct {
|
|||
Permissions []Record
|
||||
}
|
||||
|
||||
// HasPermission checks if action matches one of the required actions?
|
||||
func HasPermission(action Action, actions ...Action) bool {
|
||||
// ContainsPermission checks if action matches one of the required actions?
|
||||
func ContainsPermission(action Action, actions ...Action) bool {
|
||||
for _, a := range actions {
|
||||
if action == a {
|
||||
return true
|
Loading…
Add table
Add a link
Reference in a new issue