Feature #1565: Add new ACL resource ID bit, '%', for clusters. The reserve lookup is pending

This commit is contained in:
Carlos Martín committed 2013-01-16 18:27:36 +01:00
1 parent 3bfae38f5a
commit 1b6e38dac1
6 files changed
+72 -26

No files matched your search

+8
View File
@@ -17,6 +17,7 @@
#include "PoolObjectSQL.h"
#include "PoolObjectAuth.h"
#include "SSLTools.h"
#include "Clusterable.h"
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
@@ -260,6 +261,13 @@ void PoolObjectSQL::get_permissions(PoolObjectAuth& auth)
auth.other_u = other_u;
auth.other_m = other_m;
auth.other_a = other_a;
Clusterable* cl = dynamic_cast<Clusterable*>(this);
if(cl != 0)
{
auth.cid = cl->get_cluster_id();
}
}
/* -------------------------------------------------------------------------- */