9b34a56d7c
take action sets into account when checking folder create permissions
50 lines
654 B
Go
50 lines
654 B
Go
package store
|
|
|
|
type UserIdentifiers struct {
|
|
ID int64
|
|
UID string
|
|
}
|
|
|
|
type BasicRole struct {
|
|
Role string
|
|
IsAdmin bool
|
|
}
|
|
|
|
type PermissionsQuery struct {
|
|
OrgID int64
|
|
UserID int64
|
|
Action string
|
|
ActionSets []string
|
|
TeamIDs []int64
|
|
Role string
|
|
IsServerAdmin bool
|
|
}
|
|
|
|
type BasicRoleQuery struct {
|
|
UserID int64
|
|
OrgID int64
|
|
}
|
|
|
|
type UserIdentifierQuery struct {
|
|
UserID int64
|
|
UserUID string
|
|
}
|
|
|
|
type FolderQuery struct {
|
|
OrgID int64
|
|
}
|
|
|
|
type DashboardQuery struct {
|
|
OrgID int64
|
|
}
|
|
|
|
type Folder struct {
|
|
UID string
|
|
ParentUID *string
|
|
}
|
|
|
|
type Dashboard struct {
|
|
UID string
|
|
ParentUID *string
|
|
}
|