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

This commit is contained in:
Carlos Martín committed 2014-02-12 15:39:52 +01:00
1 parent a3939f8a06
commit b59e76688a
1 file changed
+1 -1
+1 -1
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))";
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */