3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-23 19:19:31 +01:00

launcher: move reset_permissions() call into the permissions module

This commit is contained in:
James Lu 2017-08-16 11:21:06 -07:00
parent d03924ae82
commit 3b6c1e56c4
2 changed files with 3 additions and 2 deletions

View File

@ -83,3 +83,6 @@ def check_permissions(irc, uid, perms, also_show=[]):
raise utils.NotAuthorizedError("You are missing one of the following permissions: %s" %
(', '.join(perms+also_show)))
checkPermissions = check_permissions
# Reset our permissions list on startup.
reset_permissions()

View File

@ -110,5 +110,3 @@ def main():
world.started.set()
log.info("Loaded plugins: %s", ', '.join(sorted(world.plugins.keys())))
coremods.permissions.reset_permissions() # XXX we should probably move this to run on import