mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
feature #3264: use localtime_r, group 0 can initiate showback calculations, update installer, removed debug code
This commit is contained in:
1 parent
4830db0be9
commit
367f863aed
4 files changed
+30
-51
No files matched your search
@@ -2234,11 +2234,10 @@ void VirtualMachinePoolCalculateShowback::request_execute(
|
||||
int rc;
|
||||
string error_str;
|
||||
|
||||
// TODO: do a better auth? allow any user in the oneadmin group?
|
||||
if ( att.uid != 0 )
|
||||
if ( att.gid != 0 )
|
||||
{
|
||||
failure_response(AUTHORIZATION,
|
||||
authorization_error("Action reserved for oneadmin only", att),
|
||||
authorization_error("Action reserved for group 0 only", att),
|
||||
att);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user