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:
parent
a3939f8a06
commit
b59e76688a
@ -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))";
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
Loading…
x
Reference in New Issue
Block a user