fix(VM-template): normal permissions handling

Fixes vatesfr/xo-web#1620
This commit is contained in:
Julien Fontanet 2016-10-04 15:13:08 +02:00
parent 5434b4987f
commit 75cde40b0e

View File

@ -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.