1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-13 12:58:17 +03:00

B #5022: Restore original permissions to chgrp operation

This commit is contained in:
Ruben S. Montero 2017-06-13 11:49:27 +02:00
parent 3db12aee18
commit 22f90e98c4

View File

@ -485,8 +485,8 @@ void UserChown::request_execute(xmlrpc_c::paramList const& paramList,
{
AuthRequest ar(att.uid, att.group_ids);
ar.add_auth(auth_op, uperms); // MANAGE USER
ar.add_auth(AuthRequest::MANAGE, ngperms);// MANAGE GROUP
ar.add_auth(auth_op, uperms); // MANAGE USER
ar.add_auth(AuthRequest::USE, ngperms); // USE GROUP
if (UserPool::authorize(ar) == -1)
{