mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 01:29:09 +00:00
feat: add access control
This commit is contained in:
parent
9c07ff0e54
commit
3f45153b66
47 changed files with 1084 additions and 164 deletions
|
@ -82,6 +82,10 @@ export const Role = (props: Props) => {
|
|||
|
||||
const disabledReason = (role: RPCRole) => {
|
||||
switch (role.safety) {
|
||||
case RoleSafety.ManagedRole:
|
||||
return 'This role is managed by an integration/bot.';
|
||||
case RoleSafety.AccessControl:
|
||||
return 'This role is part of the allow/block list for the server.';
|
||||
case RoleSafety.HigherThanBot:
|
||||
return `This role is above Roleypoly's own role.`;
|
||||
case RoleSafety.DangerousPermissions:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue