? Success

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
7 Aug 2016

Pull Request for Issue #11466 (com_contact part).

Summary of Changes

The ACL core.edit.own is not working in com_contact.
This PR makes it work.

Testing Instructions

  1. Use latest staging
  2. Besides the Super User, create a user "test" added to "Administrator" group
  3. Go to com_contact Options, Permissions tab and diable "Edit" for "Administrator" group
  4. Now create a new contact with the "test" user (use another browser or a private window)
  5. Try to edit that item. You can't edit our own. Bug
  6. Now do the same test but with a contact category Permission. You can't edit our own. Bug
  7. Apply patch, repeat step 5. and 6. and now you can edit our own items.
  8. Code review

Also use the two users to do a general test with the com_contact edit permissions to confirm all is fine.

Documentation Changes Required

None.

Notes

This problem was discovered in GsoC 2016 Multilingual project.

This is very similiar with #11502.

avatar joomla-cms-bot joomla-cms-bot - change - 7 Aug 2016
Category Administration Components
avatar andrepereiradasilva andrepereiradasilva - open - 7 Aug 2016
avatar andrepereiradasilva andrepereiradasilva - change - 7 Aug 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Aug 2016
Labels Added: ?
avatar andrepereiradasilva andrepereiradasilva - edited - 7 Aug 2016
avatar infograf768 infograf768 - test_item - 7 Aug 2016 - Tested successfully
avatar infograf768
infograf768 - comment - 7 Aug 2016

I have tested this item successfully on 3282bfd

:1:


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

avatar infograf768
infograf768 - comment - 7 Aug 2016

Note: The PR works great.
One issue, not related to this PR:
If the user is denied access to com_users Access Administration Interface (Typical for the default Manager group) then he can't assign a user to the Contact.
Needs some thought imho.

avatar alikon alikon - test_item - 7 Aug 2016 - Tested successfully
avatar alikon
alikon - comment - 7 Aug 2016

I have tested this item successfully on 3282bfd

works as described


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

avatar infograf768 infograf768 - test_item - 7 Aug 2016 - Tested unsuccessfully
avatar infograf768
infograf768 - comment - 7 Aug 2016

I have tested this item ? unsuccessfully on 3282bfd

Changed my testing as we have a NOtice

[07-Aug-2016 07:10:36 UTC] PHP Notice: Undefined variable: record in ROOT/administrator/components/com_contact/controllers/contact.php on line 82


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

avatar andrepereiradasilva
andrepereiradasilva - comment - 7 Aug 2016

sorry guys. corrected that. please test.

avatar alikon
alikon - comment - 7 Aug 2016

no more notice after last update

avatar alikon alikon - test_item - 7 Aug 2016 - Tested successfully
avatar alikon
alikon - comment - 7 Aug 2016

I have tested this item successfully on a1fb945


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

avatar infograf768 infograf768 - test_item - 7 Aug 2016 - Tested successfully
avatar infograf768
infograf768 - comment - 7 Aug 2016

I have tested this item successfully on a1fb945

RTC. Thanks


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

avatar infograf768 infograf768 - change - 7 Aug 2016
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 7 Aug 2016

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 7 Aug 2016
Labels Added: ?
avatar brianteeman
brianteeman - comment - 7 Aug 2016

@wilsonge is this ok to merge or does it bring back a certain issue

avatar rdeutz
rdeutz - comment - 14 Aug 2016

this looks good to me @wilsonge, have set the milestone, your turn to press the merge button

avatar wilsonge
wilsonge - comment - 15 Aug 2016

I'm just going to hold on this until i can test some stuff ;)

avatar andrepereiradasilva
andrepereiradasilva - comment - 15 Aug 2016

ok @wilsonge, go ahead, more tests are alwys good.

Just informing that are (at least) 4 PR similiar to this one:

So if you find something all need to be changed.

avatar wilsonge wilsonge - change - 15 Aug 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-08-15 12:42:15
Closed_By wilsonge
avatar wilsonge wilsonge - close - 15 Aug 2016
avatar wilsonge wilsonge - merge - 15 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - close - 15 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - change - 15 Aug 2016
Labels Removed: ?
avatar wilsonge
wilsonge - comment - 15 Aug 2016

Oh didn't realise we'd merged the other two. Merging this then. We can go back

Add a Comment

Login with GitHub to post a comment