mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 11:22:55 +09:00
Feature #2694: Enforce acl rules to be unique in the DB
This commit is contained in:
1 parent
a3939f8a06
commit
b59e76688a
1 file changed
+1
-1
@@ -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))";
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
Reference in new issue
Block a user