Finer grained local permissions, also User.Can is gone.
This commit is contained in:
parent
bef41b2718
commit
dd377358e2
19 changed files with 70 additions and 54 deletions
|
@ -275,7 +275,7 @@ public class Context {
|
|||
return;
|
||||
}
|
||||
|
||||
if(!user.Can(UserPermissions.JoinAnyChannel) && chan.IsOwner(user)) {
|
||||
if(!user.Permissions.HasFlag(UserPermissions.JoinAnyChannel) && chan.IsOwner(user)) {
|
||||
if(chan.Rank > user.Rank) {
|
||||
await SendTo(user, new CommandResponseS2CPacket(RandomSnowflake.Next(), LCR.CHANNEL_INSUFFICIENT_HIERARCHY, true, chan.Name));
|
||||
await ForceChannel(user);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue