Change WordPress user roles and capabilities › Forums › Bug Reports › Permissions Issue
- This topic has 13 replies, 3 voices, and was last updated 6 years, 9 months ago by Vladimir.
-
AuthorPosts
-
18/10/2017 at 04:13 #4296marpandParticipant
I read the other recent posts that seemed relevant to this issue but after looking deeper, their issues don’t appear to be the same issue.
We have a user, Raymond, with the roles of “editor” and “specific page manager”. He can access all that he needs to, including adding images to the media folder. However, he is unable to access the photos when he is in the post. While in the media center, he can navigate through to the folder, but then the folders don’t expand or open to allow him to get to the images to add to the content.
We created a test user, sjwtest. This was so we could continue testing this issue and ensure it wasn’t user error. I setup the permissions and roles the same way that I set up the first users. However, there are a few things that I can not get to duplicate in the new user profile.
- There is a log out everywhere button that I do not see in the sjwtest profile.
- The allow button keeps switching back to “look at roles” in the test profile. And the numbers that I assigned are disappearing in the test profile
- This test user can do the things that the first user can’t, I assume because the pages and post categories didn’t stick.
I’ve tried this on Chrome and IE to ensure it wasn’t a browser issue.
18/10/2017 at 04:24 #4297VladimirKeymasterIs there a chance to look at this issue on-line with admin privileges?
If Yes, send login credentials directly to support [at-sign] role-editor.com19/10/2017 at 04:23 #4301marpandParticipantNo problem! Just emailed you, thanks.
20/10/2017 at 02:18 #4306VladimirKeymasterThanks. I got access to your site.
It seems that described issues with test user sjwtest were gone. Please confirm:
– I see “Log Out Everythere else” button at his user profile;
– I see “Posts/Pages/Custom Post Types Editor Restrictions” section configured to “Allow” to edit 4 pages and 4 posts categories.As about access to the media folders for restricted user. When you apply edit restrictions to a user, such restrictions are applied to the Media Library also. Restricted user sees at the Media Library his own items (images) only. If there are know images uploaded by this user, he will see the empty Media Library.
If you wish to allow to see full Media Library withou restrictions you can use custom filter ure_attachments_show_full_list. Let me know if that helped.20/10/2017 at 07:03 #4312marpandParticipantThank you Vladimir, that makes sense. I’ll update the user record I’m trying to fix. I’ll let you know if it doesn’t work.
20/10/2017 at 07:08 #4313marpandParticipantI don’t see that custom filter in the capabilities options. Is it possible this is called something different in the list?
20/10/2017 at 07:32 #4314VladimirKeymasterure_attachments_show_full_list – is not a user capability. It’s a filter/hook supported by User Role Editor Pro which allows to change its default logic. We should use it as WordPress filter, that is add PHP routine which will return true or false as shown at the linked page.
25/10/2017 at 12:56 #4318marpandParticipantHey Vladimir,
I tried adding that hook but it didn’t resolve the issue with the users not being able to add media/view media.
25/10/2017 at 14:04 #4319VladimirKeymasterHi,
Please clarify. Does user see existing images at Media Library after you added ure_attachments_show_full_list filter returning true?
So what is a problem?
1) User can not insert existing media into a post?
or
2) User can not upload a new image into Media Library?
If the 2nd, let me know is the checkbox for “Force custom post types to use their own capabilities” option turned ON or OFF. I mean if it turned ON, then role or user should have capabilities from the ‘Attachments’ group, like ‘edit_attachments’, etc.29/10/2017 at 18:54 #4342marpandParticipantHey Vladimir,
The user cannot access the images in the gallery, the folder appear but are empty. So option 1 would be his issue.
30/10/2017 at 05:52 #4344VladimirKeymasterHi Maria,
URE does not prevent access to the media library items for the test user with added custom filter. It works with the folders also when you open Media Library directly via menu “Media Library”. I see that “WP Media Folder” plugin does not open folders when you try to access them from the post editor page.
URE should not prevent that. Some conflict between plugins takes place here.You have at your site an older version 2.4.1 of WP Media Folder plugin.
My test with a much later version 4.2.7 of WP Media Folder plugin from Joomunited shows that this conflict was gone. Restricted user has access to the images in any folder as from Media Library directly as via post editor page.
If that’s suitable for you I would recommend to update your version of WP Media Folder plugin to the latest one.30/10/2017 at 06:02 #4345VladimirKeymasterI can not exclude though that some other plugin may be involved here too. It may have sense to try to deactivate temporally all plugins except WP Media Folder and URE Pro and re-test the issue. I did not make this myself to not break your site. May be you can setup a stage copy for further testing of this issue.
21/02/2018 at 22:44 #4619jsoundParticipantHi, I would like to try and add the filter ure_attachments_show_full_list to see if it will resolve my media issue. But I don’t know where to add this. Can you clarify where exactly and what file? I have the latest version of your URE product also the Media Folder plugin.
Thanks,
Joe22/02/2018 at 01:38 #4620 -
AuthorPosts
- You must be logged in to reply to this topic.