User tests: Successful: Unsuccessful:
As discussed on the issue tracker:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33917&start=0
When a user attempts to access a URL they are not authorized to it is not sufficient to just show and error. Execution must be terminated as well. The fix is to throw an exception in a similar fashion to Joomla!2.x
I am not 100% sure that the enqueued message is not logged somewhere so I've kept it. Maybe the error page renders it (depending on the template?).
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-07-26 14:34:34 |
I don't think the
enqueueMessage
is still needed if you throw an exception. The Exception message should be shown itself already, or not?