mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-14 16:53:12 +09:00
Feature #1565: Add new ACL resource ID bit, '%', for clusters. The reserve lookup is pending
This commit is contained in:
1 parent
3bfae38f5a
commit
1b6e38dac1
6 files changed
+72
-26
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
Reference in new issue
Block a user