mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
Feature #687: Remove duplicated search test in AclManager::add_rule
This commit is contained in:
parent
3a321321b5
commit
759d05c2f2
@ -253,11 +253,6 @@ int AclManager::add_rule(long long user, long long resource, long long rights,
|
||||
for ( it = index.first; (it != index.second && !found); it++)
|
||||
{
|
||||
found = *(it->second) == *rule;
|
||||
if ( it->second->resource == resource &&
|
||||
it->second->rights == rights )
|
||||
{
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ( found )
|
||||
|
Loading…
x
Reference in New Issue
Block a user