? ? Pending
Referenced as Related to: # 18462

User tests: Successful: Unsuccessful:

avatar alikon
alikon
29 Oct 2017

same as #18335.

Summary of Changes

added current user acl check

Testing Instructions

Select a plugin and change access level from Public to Super User

Expected result

log as Administrator
you should not see that plugin in the plugin list items

Actual result

you see that plugin

avatar alikon alikon - open - 29 Oct 2017
avatar alikon alikon - change - 29 Oct 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 Oct 2017
Category Administration com_plugins
avatar alikon alikon - change - 29 Oct 2017
The description was changed
avatar alikon alikon - edited - 29 Oct 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Oct 2017
Easy No Yes
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 29 Oct 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 29 Oct 2017

I have tested this item successfully on dab6cb8


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

avatar esedic esedic - test_item - 29 Oct 2017 - Tested successfully
avatar esedic
esedic - comment - 29 Oct 2017

I have tested this item successfully on dab6cb8


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Oct 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 29 Oct 2017

RTC after two successful tests.

avatar wilsonge
wilsonge - comment - 29 Oct 2017

I disagree with this as a concept. I have several sites where I have plugins that are only targeted at public users - but I still want admins etc to be able to edit them.

avatar brianteeman
brianteeman - comment - 29 Oct 2017

@wilsonge you still can

what this pr is intended to do is to hide those plugins set to super user from being shown in the plugin manager to admins or managers. why you would ever want to do this or why you would ever have a plugin that only works for super users i have no idea.

overall I am not convinced this is a sensible change

avatar wilsonge
wilsonge - comment - 29 Oct 2017

I don’t think that’s the case though? I understand the intended effect but practically there is only setting with access level. Does the plugin get executed for the user or not. With this change if not they won’t see the plugin. Of course for super users this is probably ok (id need to test a bit) because of their global rights. But for non-super users not in the global access group I don’t see how they will now see things intended for people lower in the permissions chain, but they should be allowed to edit

avatar alikon
alikon - comment - 30 Oct 2017

look at this use case
suppose you want to restrict the system debug plugin to only Super Users
even if you set Super Users as the only Allowed Groups, if you log as an Administrator without this pr you are still able to edit/manage the system debug plugin
screenshot from 2017-10-30 07-44-26

so what is the expected Access behaviuor ?

avatar brianteeman
brianteeman - comment - 30 Oct 2017

@alikon that answers my question - thanks

avatar ggppdk
ggppdk - comment - 30 Oct 2017

Expected result

log as Administrator
you should not see that plugin in the plugin list items

You are able to edit even after this PR,
the core.edit ACL decides if something is editable,

this PR just hides it, same thing in article manager
see more in my RFC issue

#17913

avatar wilsonge
wilsonge - comment - 30 Oct 2017

What @ggppdk says - this doesn't stop you editing (which gives a false sense of security), plus we have an ACL level for all plugins - which is core.edit at the plugin level. If you want to add in per-plugin acl for editing - then you need to do that as a thing. Trying to hack things in with the View Access Levels is totally abusing what that system is being used for

avatar alikon
alikon - comment - 1 Nov 2017

naive question:
please show me how you are still able to edit it ?

as for now we only have ACL level for all plugins so we don't have fine grained level permission for each plugin like modules/articles and to add acl per-plugin is outside the scope of this pr, even if i really wish such kind of PR come out

the scope of this pr is simple to hide items that you don't have proper access to, and honestly i don't think is abusing the system untill you clearly state :
what is the expected Access behaviuor/scope ?

avatar ggppdk
ggppdk - comment - 1 Nov 2017

Take the edit link of a plugin you can edit

I do not mean the edit form link that loads after the controller task does the edit task checkand adds the ID into session, so i do not mean

  • administrator/index.php?option=com_plugins&view=plugin&layout=edit&extension_id=401

Instead use the link from plugin manager listing that points to the controller edit task
(find the edit link of a plugin that you can view and edit e.g. no 401)

  • administrator/index.php?option=com_plugins&task=plugin.edit&extension_id=401

then in it replace the ID 401, with the ID of a plugin you can not view

Also why the change of this PR would prevent editing ?

  • the change is just in query for record listing
avatar alikon
alikon - comment - 1 Nov 2017

how many average user do that ?

avatar alikon alikon - change - 1 Nov 2017
Labels Added: ?
avatar alikon
alikon - comment - 1 Nov 2017

@ggppdk added a check for direct link like

administrator/index.php?option=com_plugins&task=plugin.edit&extension_id=401

updated
wasn't true, sorry got side-effects

avatar alikon alikon - change - 1 Nov 2017
Labels Added: ?
avatar alikon
alikon - comment - 1 Nov 2017

right Access level check for direct link

avatar wilsonge
wilsonge - comment - 19 Nov 2017

Sorry but I'm not merging this. This is fundamentally wrong.

avatar wilsonge wilsonge - change - 19 Nov 2017
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2017-11-19 13:03:10
Closed_By wilsonge
avatar wilsonge wilsonge - close - 19 Nov 2017

Add a Comment

Login with GitHub to post a comment