User tests: Successful: Unsuccessful:
Pull Request for Improvement.
This PR is the sequence of #11593.
Replace all remaining administrator components existing 404 JError for a 403 php exception (JAccessExceptionNotallowed
) when the user does not have access to "Access Administration Interface" (core.manage).
/administrator/index.php?option=com_banners
/administrator/index.php?option=com_cache
/administrator/index.php?option=com_categories
/administrator/index.php?option=com_categories&extention=com_content
/administrator/index.php?option=com_checkin
/administrator/index.php?option=com_contact
/administrator/index.php?option=com_content
/administrator/index.php?option=com_contenthistory&view=history (this one will give a layout not definied error)
/administrator/index.php?option=com_finder
/administrator/index.php?option=com_installer
/administrator/index.php?option=com_joomlaupdate
/administrator/index.php?option=com_languages
/administrator/index.php?option=com_media
/administrator/index.php?option=com_menus
/administrator/index.php?option=com_messages
/administrator/index.php?option=com_modules
/administrator/index.php?option=com_newsfeeds
/administrator/index.php?option=com_plugins
/administrator/index.php?option=com_redirect
/administrator/index.php?option=com_search
/administrator/index.php?option=com_tags
/administrator/index.php?option=com_templates
/administrator/index.php?option=com_users
Note the other admin components (com_admin, com_ajax, com_cpanel, com_postinstall) doesn't use this or already use exceptions.
Didn't touch com_config. This one needs another PR.
None.
Category | ⇒ | Administration Components Media Manager Tags |
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
ok. i understand, so what do you recomend then?
Add a new JAccessExceptionNotallowed
exception?
I think so - and thinking about it maybe extend the controller exception from that?
Category | Administration Components Media Manager Tags | ⇒ | Administration Components Media Manager Tags Libraries |
ok done.
Removed the JControllerExceptionNotAllowed since it doesn't make sense now (it was added yesterday so no B/C break)
I have tested this item
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-08-15 22:42:25 |
Closed_By | ⇒ | wilsonge |
OK so I'm going to be super nasty about this. I think this needs a different exception class - this is not an exception thrown in the controller therefore in my opinion
JControllerExceptionNotallowed
is the wrong exception to be used here