AMP
AMP copied to clipboard
Hide UI elements when not used/specified/permissions denied
Bug Report
Hide UI elements when not used/specified/permissions denied
System Information
- Operating System (Including distribution name and version number) Ubuntu 20.04.5 LTS
- AMP version and build date (Always use the version number, 'latest' is not valid!) 2.4.3.0
- Which AMP release stream you're using (Mainline, Nightly or FastTrack) Mainline
I confirm:
- [x] that I have searched for an existing bug report for this issue.
- [x] that I am using the latest available version of AMP.
- [x] that my operating system is up-to-date.
Symptoms
- What are you trying to do? There are elements within the UI that when a user is denied permission (ie. Enable direct file transfers in the file manager configuration) or when a template is setup to not require something (ie. Steam Workshop downloads are not a thing in Mordhau) the UI still presents these to the user. This causes confusion for the end user, and ends up either breaking things or showing errors that freak people out, causing undue load on support teams.
- What are you expecting to happen? WebUI elements that are not applicable to a specific template, ie steam workshop mods section within steamcmd and updates, or items that are explicitly denied by permissions, ie Enable direct file transfers in the file manager configuration, should be hidden to the user and unable to be operated.
- What is actually happening? ('Nothing' is not an acceptable answer!) These UI elements are present within the WebUI, causing confusion
Reproduction
Deploy a mordhau server Create a new user, deny permissions to Enable direct file transfers for that user Login as that user See that you can still configure the Enable direct file transfers, though it throws an error - the user shouldn't see the menu item at all navigate to SteamCMD and Updates - see the workshop mod installer - get confused.
I think this was resolved some time ago? Can someone confirm?
This wasn't resolved, since there's a couple issues mentioned here. The SteamCMD and Updates settings are shown regardless of the game server type still.