Commit 1b1efdf4 authored by Matthieu Lamalle's avatar Matthieu Lamalle

Update root rights

parent 55359791
Pipeline #350 passed with stage
in 0 seconds
......@@ -50,7 +50,7 @@ class ServerRunner(ZephirCommonController):
if 'server_id' in message_arguments:
server_id = message_arguments['server_id']
if '_session_user' not in message_arguments:
if '_session_user' not in message_arguments or message_arguments['_session_user']['profil'] == 'root':
return 'root'
else:
profils = self._get_serverselection_user_server_role(cursor, server_id, message_arguments['_session_user']['username'])
......@@ -64,7 +64,7 @@ class ServerRunner(ZephirCommonController):
def get_profil_for_serverselection(self, cursor, uri, message_arguments):
serverselection_id = message_arguments['serverselectionid']
if '_session_user' not in message_arguments:
if '_session_user' not in message_arguments or message_arguments['_session_user']['profil'] == 'root':
return 'root'
else:
if message_arguments['_session_user']['profil'] == 'root':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment