Make background locking a CM permission (#379)
This commit is contained in:
parent
4f0415cb37
commit
3b7d6cafde
@ -33,8 +33,8 @@ const QMap<QString, AOClient::CommandInfo> AOClient::COMMANDS{
|
|||||||
{"rootpass", {{ACLRole::SUPER}, 1, &AOClient::cmdSetRootPass}},
|
{"rootpass", {{ACLRole::SUPER}, 1, &AOClient::cmdSetRootPass}},
|
||||||
{"background", {{ACLRole::NONE}, 1, &AOClient::cmdSetBackground}},
|
{"background", {{ACLRole::NONE}, 1, &AOClient::cmdSetBackground}},
|
||||||
{"side", {{ACLRole::NONE}, 0, &AOClient::cmdSetSide}},
|
{"side", {{ACLRole::NONE}, 0, &AOClient::cmdSetSide}},
|
||||||
{"lock_background", {{ACLRole::BGLOCK}, 0, &AOClient::cmdBgLock}},
|
{"lock_background", {{ACLRole::CM}, 0, &AOClient::cmdBgLock}},
|
||||||
{"unlock_background", {{ACLRole::BGLOCK}, 0, &AOClient::cmdBgUnlock}},
|
{"unlock_background", {{ACLRole::CM}, 0, &AOClient::cmdBgUnlock}},
|
||||||
{"adduser", {{ACLRole::MODIFY_USERS}, 2, &AOClient::cmdAddUser}},
|
{"adduser", {{ACLRole::MODIFY_USERS}, 2, &AOClient::cmdAddUser}},
|
||||||
{"removeuser", {{ACLRole::MODIFY_USERS}, 1, &AOClient::cmdRemoveUser}},
|
{"removeuser", {{ACLRole::MODIFY_USERS}, 1, &AOClient::cmdRemoveUser}},
|
||||||
{"listusers", {{ACLRole::MODIFY_USERS}, 0, &AOClient::cmdListUsers}},
|
{"listusers", {{ACLRole::MODIFY_USERS}, 0, &AOClient::cmdListUsers}},
|
||||||
|
Loading…
Reference in New Issue
Block a user