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

(cherry picked from commit d56a0757a8)
This commit is contained in:
Pavel Czerný authored and Ruben S. Montero committed 2019-06-25 10:17:14 +02:00
1 parent eea1ac18bd
commit 9e18d65ca6
1 file changed
+1 -1
+1 -1
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;