add admin policy
This commit is contained in:
parent
4c591f4f30
commit
5bd860042e
|
@ -0,0 +1,7 @@
|
|||
package ADMIN.LOGIN
|
||||
|
||||
default allow := false
|
||||
|
||||
allow {
|
||||
input.role == "admin"
|
||||
}
|
|
@ -4,4 +4,5 @@ export enum Action {
|
|||
UPDATE = 'UPDATE',
|
||||
DELETE = 'DELETE',
|
||||
LIST = 'LIST',
|
||||
LOGIN = 'LOGIN',
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
export enum Domain {
|
||||
USER = 'USER',
|
||||
ADMIN = 'ADMIN',
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue