-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Not allowed to core.manage? Use 403 exception (for remaning components) #11608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
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 |
|
ok. i understand, so what do you recomend then? |
|
Add a new |
|
I think so - and thinking about it maybe extend the controller exception from that? |
|
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 ✅ successfully on bb75a88 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11608. |
…s) (joomla#11608) * add exception to com_cache * Update categories.php * Update checkin.php * Update contact.php * Update content.php * Update contenthistory.php * Update finder.php * Update installer.php * Update joomlaupdate.php * Update languages.php * Update media.php * Update menus.php * Update messages.php * Update modules.php * Update newsfeeds.php * Update redirect.php * Update search.php * Update tags.php * Update templates.php * Update users.php * Update templates.php * move to JAccessExceptionNotallowed * move to JAccessExceptionNotallowed 2
…s) (joomla#11608) * add exception to com_cache * Update categories.php * Update checkin.php * Update contact.php * Update content.php * Update contenthistory.php * Update finder.php * Update installer.php * Update joomlaupdate.php * Update languages.php * Update media.php * Update menus.php * Update messages.php * Update modules.php * Update newsfeeds.php * Update redirect.php * Update search.php * Update tags.php * Update templates.php * Update users.php * Update templates.php * move to JAccessExceptionNotallowed * move to JAccessExceptionNotallowed 2
Pull Request for Improvement.
Summary of Changes
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).Before
After
Testing Instructions
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.
Documentation Changes Required
None.