? Success

User tests: Successful: Unsuccessful:

avatar roland-d
roland-d
8 Jun 2016

Summary of Changes

This change fixes the reporting of the ACL settings.

Testing Instructions

  1. Go to System -> Global configuration -> Permission
  2. Click on Super User
  3. You will see that the permissions will show allowed/not allowed instead of Allowed (Super User)
  4. Click on Administrator
  5. You will see that the permissions will show as Allowed (Super User) / Not allowed even if a permission is set to Allowed.
  6. Apply the patch
  7. Go to System -> Global configuration -> Permission
  8. Click on Super User
  9. You will see that the permissions will now show Allowed (Super User) for all of them
  10. Click on Administrator
  11. You will see that the permissions will now show as Allowed / Not allowed / Conflict (depends on your settings)
  12. Please also check the other ACL settings you have in use to make sure all reported statuses are correct.

Calling @andrepereiradasilva and @infograf768 for special attention :)

avatar roland-d roland-d - open - 8 Jun 2016
avatar roland-d roland-d - change - 8 Jun 2016
Status New Pending
avatar roland-d roland-d - change - 8 Jun 2016
Milestone Added:
avatar joomla-cms-bot joomla-cms-bot - change - 8 Jun 2016
Labels Added: ?
avatar infograf768
infograf768 - comment - 8 Jun 2016

Corrects a lot of stuff. Still some Ajax issues I guess.
Test on staging:

before, for superUser
screen shot 2016-06-08 at 09 07 54

Before, for administrator
screen shot 2016-06-08 at 09 08 06

After, for superuser
screen shot 2016-06-08 at 09 06 29

After for administrator
screen shot 2016-06-08 at 09 13 03

BUT, if I change a permission to Denied for superUser , before save I get

screen shot 2016-06-08 at 09 16 18

and after save

screen shot 2016-06-08 at 09 03 56

So, this is a small problem, but it also shows (and I have seen that all over before or after patch), that we have to save the permissions to get the correct saved settings.
Ajax does not do its job OK.
Alas, a PR took off the instruction to Save the permissions in lang strings:
See #10115

avatar brianteeman brianteeman - change - 8 Jun 2016
Category ACL
avatar roland-d
roland-d - comment - 8 Jun 2016

@infograf768 The AJAX results after saving are not part of this PR, I am going to make a separate one for that.

As for the Denied, if I am not mistaken, this is always overriden by the Super User setting or not?

avatar infograf768
infograf768 - comment - 8 Jun 2016

As for the Denied, if I am not mistaken, this is always overriden by the Super User setting or not?

The calculated settings after saving are correct. I will test now site login (for example) after and before save.

avatar infograf768
infograf768 - comment - 8 Jun 2016

@roland-d

yep, the display of the permissions is wrong but the super user can login in frontend before and after saving the permissions.

avatar roland-d
roland-d - comment - 8 Jun 2016

@infograf768 I have not looked at the AJAX results yet, that will be the next PR :)

Perpahs we should show the Conflict status if you set this to Denied but it is overruled.

avatar infograf768
infograf768 - comment - 8 Jun 2016

Perpahs we should show the Conflict status if you set this to Denied but it is overruled.

Well, if the Ajax issue is solved, it should not stay at all in the New settings box, should'nt it?
Or should it until Save? If yes, adding the Conflict status looks like the only solution before Save.

avatar roland-d
roland-d - comment - 8 Jun 2016

@infograf768 Even with AJAX, we can't change the dropdown back to what it was as it will appear as nothing worked. We can then show the Conflict status and perhaps a message that the change wasn't saved because of it.

avatar infograf768
infograf768 - comment - 8 Jun 2016

@roland-d

Will this be still updated or can I mark the test as succesful? It is quite urgent to get it in.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10755.

avatar roland-d
roland-d - comment - 8 Jun 2016

@infograf768 This PR is ready to go, I am working on the AJAX code now.

avatar infograf768 infograf768 - test_item - 8 Jun 2016 - Tested successfully
avatar infograf768
infograf768 - comment - 8 Jun 2016

I have tested this item successfully on 93b27b9

OK here. One more tester.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10755.

avatar andrepereiradasilva
andrepereiradasilva - comment - 8 Jun 2016

if super user cannot be changed can't we disable the select boxes for the super user group?
Or return a js message saying that cannot be changed?

Update: Froget it i saw your other PR now.

avatar andrepereiradasilva andrepereiradasilva - test_item - 8 Jun 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 8 Jun 2016

I have tested this item successfully on 93b27b9

works as described. thanks.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10755.

avatar roland-d
roland-d - comment - 8 Jun 2016

@andrepereiradasilva Thanks for the test. I was actually thinking, on the Super User tab, you only need the Super User privilege. The rest is useless basically. Indeed, this would be for another PR.

avatar roland-d roland-d - change - 8 Jun 2016
Status Pending Ready to Commit
avatar roland-d
roland-d - comment - 8 Jun 2016

RTC as we have 2 succesful tests


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10755.

avatar joomla-cms-bot joomla-cms-bot - change - 8 Jun 2016
Labels Added: ?
avatar wilsonge wilsonge - change - 8 Jun 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-06-08 15:38:28
Closed_By wilsonge
avatar wilsonge wilsonge - close - 8 Jun 2016
avatar wilsonge wilsonge - merge - 8 Jun 2016
avatar joomla-cms-bot joomla-cms-bot - close - 8 Jun 2016
avatar joomla-cms-bot joomla-cms-bot - change - 8 Jun 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment