fix(VM-template): normal permissions handling
Fixes vatesfr/xo-web#1620
This commit is contained in:
parent
5434b4987f
commit
75cde40b0e
@ -85,7 +85,7 @@ const checkAuthorizationByTypes = {
|
||||
|
||||
'VM-snapshot': checkMember('$snapshot_of'),
|
||||
|
||||
'VM-template': authorized
|
||||
'VM-template': or(checkSelf, checkMember('$pool'))
|
||||
}
|
||||
|
||||
// Hoisting is important for this function.
|
||||
|
Loading…
Reference in New Issue
Block a user