Skip to content

middleware: Don't show setup view to non-admin users

Tests:

  • Install an app. Success result is shown.

  • Install an app and kill the apt-get process in the middle. Error result is shown.

  • Click install on an app (email_server). Close the window without seeing the result. Access the app page (like email_server/my_aliases) as a non-admin user. No success/file message is shown. The page is shown properly. Access the page as admin, success message is shown.

  • Access an uninstalled/installed app page as anonymous user. User is redirected to login page.

  • Access an uninstalled/installed app page as non-admin user. Forbidden page is shown.

  • Access an uninstalled app page meant for non-admin users (such as email_server/my_aliases) as non-admin user. Forbidden page is shown.

  • Access an installed app page as admin. Success.

  • Access an installed app page meant for non-admin users (such as email_server/my_aliases) as admin. Success.

Signed-off-by: Sunil Mohan Adapa sunil@medhas.org

Merge request reports

Loading