1
0
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:
Carlos Martín 2011-07-04 18:06:46 +02:00
parent 01606d1768
commit 2449b2cda1

View File

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