View Issue Details

IDProjectCategoryView StatusLast Update
0014645mantisbtauthenticationpublic2012-08-24 04:15
ReporterErikRoelofs Assigned To 
PriorityhighSeveritycrashReproducibilityalways
Status newResolutionopen 
Product Version1.2.10 
Summary0014645: Requesting logged in user on login page simply exits with no message
Description

In the access_api, if you get an access denied, it will check if the current page is not the login and then redirect you there.

However, if the page IS the login page, there is no catch or error. The program simply exists, leaving a frustrated programmer to step through the entire program figuring out why the login page is suddenly just a white page.

It would be nice to have some kind of message stating that the user is denied access to the login page.

Steps To Reproduce

1) Have a plugin that checks for the logged in user during setup

TagsNo tags attached.

Activities

ErikRoelofs

ErikRoelofs

2012-08-24 04:15

reporter   ~0032636

Or, even better, it would be nice if the design would change. You don't expect a function that gets the current global access level to simply exit the entire program with a redirect (if you're lucky).

It would be better for such functions to just return 0 or something.