1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

B #2563: Admin can always change other permissions (#3449)

(cherry picked from commit d56a0757a84a0efe3b30c268e101aaae60ee4f19)
This commit is contained in:
Pavel Czerný 2019-06-25 10:12:43 +02:00 committed by Ruben S. Montero
parent eea1ac18bd
commit 9e18d65ca6
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -133,7 +133,7 @@ Request::ErrorCode RequestManagerChmod::chmod(
Nebula::instance().get_configuration_attribute(
"ENABLE_OTHER_PERMISSIONS", enable_other);
if ( !enable_other )
if ( !enable_other && !att.is_admin())
{
att.resp_msg = "'other' permissions is disabled in oned.conf";
return AUTHORIZATION;