1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Feature #2694: Enforce acl rules to be unique in the DB

This commit is contained in:
Carlos Martín 2014-02-12 15:39:52 +01:00
parent a3939f8a06
commit b59e76688a

View File

@ -29,7 +29,7 @@ const char * AclManager::db_names = "oid, user, resource, rights, zone";
const char * AclManager::db_bootstrap = "CREATE TABLE IF NOT EXISTS "
"acl (oid INT PRIMARY KEY, user BIGINT, resource BIGINT, "
"rights BIGINT, zone BIGINT)";
"rights BIGINT, zone BIGINT, UNIQUE(user, resource, rights, zone))";
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */