Ensure expired permissions are removed when users/groups are loaded for commands

This commit is contained in:
Luck 2017-04-10 20:57:59 +01:00
parent f6f9840eb7
commit 4631dcf857
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
2 changed files with 3 additions and 0 deletions

View File

@ -67,8 +67,10 @@ public class GroupMainCommand extends MainCommand<Group> {
if (group == null) { if (group == null) {
Message.GROUP_NOT_FOUND.send(sender); Message.GROUP_NOT_FOUND.send(sender);
return null;
} }
group.auditTemporaryPermissions();
return group; return group;
} }

View File

@ -91,6 +91,7 @@ public class UserMainCommand extends MainCommand<User> {
return null; return null;
} }
user.auditTemporaryPermissions();
return user; return user;
} }