Merge branch 'adminLogin' into 'main'
add admin policy See merge request v3/services/auth!15
This commit is contained in:
commit
91a89cc65f
|
@ -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