mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
Feature #687: Remove duplicated search test in AclManager::add_rule
This commit is contained in:
1 parent
3a321321b5
commit
759d05c2f2
1 file changed
-5
@@ -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 )
|
||||
|
||||
Reference in new issue
Block a user