Access Control: Move database-related models to enterprise (#32907)
* Move database-related models to enterprise * Chore: use GetUserBuiltInRoles() method * Rename permission to action
This commit is contained in:
@@ -11,7 +11,7 @@ type AccessControl interface {
|
||||
Evaluate(ctx context.Context, user *models.SignedInUser, permission string, scope ...string) (bool, error)
|
||||
|
||||
// GetUserPermissions returns user permissions.
|
||||
GetUserPermissions(ctx context.Context, user *models.SignedInUser, roles []string) ([]*Permission, error)
|
||||
GetUserPermissions(ctx context.Context, user *models.SignedInUser) ([]*Permission, error)
|
||||
|
||||
// Middleware checks if service disabled or not to switch to fallback authorization.
|
||||
IsDisabled() bool
|
||||
|
||||
Reference in New Issue
Block a user