diff --git a/server-api/src/perms.rs b/server-api/src/perms.rs index d393af2..266be43 100644 --- a/server-api/src/perms.rs +++ b/server-api/src/perms.rs @@ -10,14 +10,14 @@ pub const CREATE_PERM_INVITES:u64 = 8; // to make perma invites you need both fl pub const OWNER: u64 = 1 << 63; -pub const ADMIN: u64 = 1 << 62; // can make other admins but can't really touch the owner +pub const _ADMIN: u64 = 1 << 62; // can make other admins but can't really touch the owner // ADMIN PERMS pub const CREATE_CHANNEL:u64 = 64; pub const DELETE_CHANNEL:u64 = 128; // BELOW ARE COLLECTIVE PERMISSION SETS -pub const OWNER_PERMS: u64 = std::u64::MAX; +pub const _OWNER_PERMS: u64 = std::u64::MAX; pub const GENERAL_NEW: u64 = JOIN_VOICE | SEND_MESSAGES | ALLOW_PFP | CHANGE_NICK; pub const ADMIN_PERMS: u64 = !(std::u64::MAX & OWNER); // filter the only perm admins don't get @@ -26,7 +26,6 @@ pub fn get_perm_mask(path: &str) -> Option { INVITE_CREATE, CHANNELS_LIST, CHANNELS_CREATE, CHANNELS_DELETE, MESSAGE_SEND, - SERVER_META, }; match path { INVITE_CREATE => Some(CREATE_TMP_INVITES),