-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improve ajax js errors and solve ACL problems #53
Conversation
@roland-d i make all the changes needed to have always a js result. Didn't have test all yet, but it seems the work reggarding js is all done here. See https://github.com/andrepereiradasilva/joomla-cms/pull/53/files?w=1 to check the changes without whitespaces. I will further test this when i have time. You can try:
|
BTW this alreasy includes your 10764 PR |
@andrepereiradasilva I have checked the two issues as you requested and I have not found any issues other than the known issues. |
i think i solved all issues now. hope ... |
@andrepereiradasilva |
conflicts fixed |
Looks like working here. |
Done since last comments:
Still TO DO:
|
Looks good. remains only the TODO |
… it's a super user)
DONE! |
First series of tests look promessing |
* Codestyle * indent * order * oops * changes requested by @andrepereiradasilva * cs * changes requested by @wojsmol * Update mod_logged.xml (#43) * Update templateDetails.xml (#45) i need to fix my ide!! * Update mod_popular.xml (#44) * Update templateDetails.xml (#57) * Update mod_version.xml (#56) * Update mod_toolbar.xml (#55) * Update mod_title.xml (#54) * Update mod_submenu.xml (#53) * Update mod_status.xml (#52) * Update mod_stats_admin.xml (#51) * Update mod_quickicon.xml (#50) * Update mod_menu.xml (#49) * Update mod_login.xml (#48) * Update mod_latest.xml (#47) * Update mod_feed.xml (#46)
Export Data from Request List
Pull Request for Several ACL issues.
Summary of Changes
This PR makes several changes in the permissions panel and also replicate js improvements in sendtest mail in order to solves bugs and improve php/js code.
Bugs/Improvements
1: Ajax js errors are not catched in permission.js
After this PR uses the same checks as sendtestmail.js that where now moved to core.js
2: Session token is not being checked in permission.js
After this PR the session token is checked.
3: When a "Denied" permission is inherited the calculated permission is "Not Allowed (Locked)"
After this PR the text was changed to "Not Allowed (Inhreited)"
4: Permision js ajax call is returned in html mimetype
After this PR the ajax call is returned in json mimetype.
5: Some errored of permision and sentestmil js ajax calls are returned in HTML
After this PR the all messages are returned in Json.
6: The js messages in sendtestmail and permissions.js are not cleaned on change.
After this PR they are cleaned everytime you change.
7: Permission js uses a custom html message system
After this PR all message use the Joomla API message system.
8: A super user cannot remove super user permission from other groups that his not into.
After this PR this is possible.
9: When a Super permission is changed or a a group with child groups permission is changed the user is not informed that we needs to refresh the page to recalculate permissions.
After this PR the user is notified.
10: A user that is not Super User can change a Super User group permissions.
After this PR this is not possible.
11: A user that is not Super User can change change its own's groups ot it's parent permissions.
After this PR this is not possible.
12: We don't have calulate permissions in com_config public group.
After this PR we have the calculated permission here too.
13: Changing a permission with "Not Allowed (Inhreited)" to "Alloewd" or "Denied" changes it's calculate permission.
After this PR the calculated permissions always stays "Not Allowed (Inhreited)" in this cases.
14: If you change a "Inherited" permission with a calculated permission of "Not Allowed" to "Allowed" and then back to "Inherited", the calculated status is changed to "Allowed" (it should be "Not Allowed").
This PR solves that.
15: There are some "Conflict" messages when you have a parent group with "Denied" and some child group with "Allowed". This should be only "Not Allowed (Inhreited)"
This PR solves that.
There can be more bugs/improvements that i don't remember...
Scenarios
Calculated Permissions Scenarios
If only "Inherited" across the group tree:
If any "Denied" across the group tree:
If no "Denied" and a "Allowed" across the group tree:
Special case: If group has super User permissions all values in that group and child groups should be "Allowed (Super User)" (green).
Error/Notices Scenarios
Can't change permissions scenarios:
Ask user to reload the page scenarios:
Testing Instructions