Closed Volte6 closed 3 weeks ago
This is to allow admin users to alter the permission for other non-admin users to be either:
admin
user
mod
Add a new command: modify
modify
Usage:
modify permission {username} {user/mod/admin}
As a security precaution, {username} must be an exact match, close matches not allowed.
{username}
As a security precaution, admins cannot be set to a non-admin status. This will require manually editing the users file.
If {username} is not found, it should prompt the admin to search offline users, and if so, will search the offline user files and update there.
A prompt/confirmation will confirm the character name AND login username being (up/down)graded.
Added in this PR: https://github.com/Volte6/GoMud/pull/148
Closing.
Motivation
This is to allow
admin
users to alter the permission for other non-admin users to be either:user
- An ordinary usermod
- A user with enhanced powersadmin
A user with maximal powers to change server configuration etc.Plan
Add a new command:
modify
Usage:
modify permission {username} {user/mod/admin}
As a security precaution,
{username}
must be an exact match, close matches not allowed.As a security precaution, admins cannot be set to a non-admin status. This will require manually editing the users file.
If
{username}
is not found, it should prompt the admin to search offline users, and if so, will search the offline user files and update there.A prompt/confirmation will confirm the character name AND login username being (up/down)graded.