1
0
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:
Carlos Martín 2011-06-30 11:04:07 +02:00
parent 3a321321b5
commit 759d05c2f2

View File

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