Permissons error when viewing documents and media portlet
Description
Attachments
Activity

ginson.renFebruary 13, 2012 at 12:43 AMEdited
PASSED Manual Testing using the following steps:
1. Add a new role "R".
2. Click action -> define permissions.
3. Choose control panel:site, add Access in Control Panel and view permissions to the role.
4. Create a new user "test1", add role R to test1.
5. Login as test1, go to control panel -> Documents and Media.
Reproduced on:
Tomcat 7.0.25 + MySQL 5. 6.2.x GIT ID: a20075262d089e44e6433c2d36684f4dc085b900.
It will display "You do not have the roles required to access this portlet."
Fixed on:
Tomcat 7.0.25 + MySQL 5. 6.1.x GIT ID: c2359ac220dc3de6d0a633cc3bcb32d7472874dd.
Tomcat 7.0.25 + MySQL 5. 6.2.x GIT ID: 3b88ca7c3827e762391ed1ab6789a2a4c9b3be1f.
User can access Documents and Media portlet.

Michael SaechangFebruary 10, 2012 at 12:39 PM
Committed on:
6.1.x GIT ID: ba37e0b9a838457715e15dae0cc8680f54767dc6.
6.2.x GIT ID: 50efd4ac9f5d95580d50627fd79eba6c0b62b1f4.
Details
Assignee
ginson.renginson.ren(Deactivated)Reporter
Sergio GonzalezSergio Gonzalez(Deactivated)Labels
Branch Version/s
6.1.xBackported to Branch
CommittedFix Priority
4Git Pull Request
Components
Fix versions
Affects versions
Priority
Medium
Details
Details
Assignee

Reporter

Labels
Branch Version/s
Backported to Branch
Fix Priority
Git Pull Request
Components
Fix versions
Affects versions
Priority
Zendesk Support
Linked Tickets
Zendesk Support
Linked Tickets
Zendesk Support

We have an issue with Document Library permissions. The problem we have is that we don't have a real root folder, so when we are doing permission checking in root folder we checked the model com.liferay.portlet.documentlibrary and not com.liferay.portlet.documentlibrary.model.DLFolder.
Then, if we create a regular rol that has Access in Control Panel and View permission (see accessandviewcontrolpanel.jpg) he is not able to see the Documents and Media in Control Panel, because we didn't set the VIEW permission for com.liferay.portlet.documentlibrary (you can see the error in viewdocumentsmedia.jpg)
So, if we want a role that allows the user to access Documents and Media in Control Panel, besides the above permissions, we also need to set VIEW permission for the model com.liferay.portlet.documentlibrary (as you can see in viewpermission.jpg). However, this doesn't make sense from a user point of view, because in the rest of the portlet, with the 2 first permissions is enough.