Merge branch 'bug/general-user-bug' into 'dev'

Fix blank server_detail page for general users

See merge request crafty-controller/crafty-4!358
This commit is contained in:
Iain Powrie 2022-06-17 14:27:45 +00:00
commit 4501e91a0b
2 changed files with 4 additions and 9 deletions

View File

@ -1,15 +1,9 @@
# Changelog
## [4.0.3] - TBD
## [4.0.2-hotfix1] - 2022/06/17
### New features
TBD
### Bug fixes
TBD
### Tweaks
TBD
### Crit Bug fixes
Fix blank server_detail page for general users
## [4.0.2] - 2022/06/16

View File

@ -183,6 +183,7 @@ class PanelHandler(BaseHandler):
logger.debug(f'User {exec_user["user_id"]} does not have permission')
self.redirect("/panel/error?error=Invalid Server ID")
return None
return server_id
# Server fetching, spawned asynchronously
# TODO: Make the related front-end elements update with AJAX