mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-13 16:23:17 +09:00
F #1377: Added new funtion to check lock state with oneadmin. Missing
action names. Functions to test oneadmin or admin roles
This commit is contained in:
1 parent
ad5f6ff4cf
commit
d7ce29183c
28 files changed
+453
-503
No files matched your search
@@ -63,7 +63,7 @@ void SystemSql::request_execute(xmlrpc_c::paramList const& paramList,
|
||||
|
||||
SqlDB * db;
|
||||
|
||||
if ( att.uid != 0 )
|
||||
if (!att.is_oneadmin())
|
||||
{
|
||||
att.resp_id = -1;
|
||||
|
||||
@@ -164,7 +164,7 @@ void SystemSqlQuery::request_execute(xmlrpc_c::paramList const& paramList,
|
||||
|
||||
std::string result;
|
||||
|
||||
if ( att.uid != 0 )
|
||||
if (!att.is_oneadmin())
|
||||
{
|
||||
att.resp_id = -1;
|
||||
|
||||
|
||||
Reference in new issue
Block a user