feature #3264: use localtime_r, group 0 can initiate showback calculations, update installer, removed debug code

This commit is contained in:
Ruben S. Montero committed 2014-11-27 14:52:56 +01:00
1 parent 4830db0be9
commit 367f863aed
4 files changed
+30 -51

No files matched your search

+2 -3
View File
@@ -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;
}