mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-22 13:33:52 +03:00
Feature #687: Bug in ACL rule matching, it was missing a mask
This commit is contained in:
parent
01606d1768
commit
2449b2cda1
@ -268,7 +268,7 @@ bool AclManager::match_rules(
|
||||
&&
|
||||
(
|
||||
// Rule grants permission for all objects of this type
|
||||
( it->second->resource == resource_all_req )
|
||||
( ( it->second->resource & resource_all_req ) == resource_all_req )
|
||||
||
|
||||
// Or rule's object type and group object ID match
|
||||
( ( it->second->resource & resource_gid_mask ) == resource_gid_req )
|
||||
|
Loading…
Reference in New Issue
Block a user