Details

    • Similar Issues:
      Show 5 results 

      Description

      The document library toolbar does not respect the folder permissions.
      After spending some time on the problem, i realized that the toolbar in the document library (containing Actions buttons) actually is only loaded ONCE upon instantiation of the portlet. Other buttons such as "AddButton" is actually reloaded in the document library main.js so this is not an issue when browsing through different folders.

      Every further browsing through the folders does not refresh the privileges.
      The toolbar is displayed by default if the user is logged in. However the options available shall be dependent on the logged-in user permissions as well.

        Activity

        Hide
        Natasa Bulatovic added a comment -

        well, javascript in view_folder.jsp could do the work, but somehow is not indeed perfect solution.

        Show
        Natasa Bulatovic added a comment - well, javascript in view_folder.jsp could do the work, but somehow is not indeed perfect solution.
        Hide
        Gaurav Jain added a comment -

        The mentioned description is not clear enough to trace the problem.

        However being part of community verifier program, I tried to trace it against Liferay 6.2.0 CE M4 tomcat bundle/MySql 5.5.17.

        I followed steps:

        • Installed fresh setup of above mentioned version
        • Created a role "test-role", defined its permissions add given this role permission to "access Document and Media in control panel", "add subfolder"
        • Created a user "test-user" and associated this user with the "test-role"
        • Created a document and media folder "test-folder" with admin user.
        • Loggedin with "test-user" and this user has permission to add sub-folder to "test-folder" because of super priviledges given to his role

        Use-case 2:

        • Loggedin with admin again
        • Removed test-role permission to add sub-folder
        • test-user now can't add subfolder to "test-folder"
        • but if te test-folder permissions are updated to give "Add-SubFolder" permission to test-role; test-user can add sub-folder to it

        So permissions are working fine

        Show
        Gaurav Jain added a comment - The mentioned description is not clear enough to trace the problem. However being part of community verifier program, I tried to trace it against Liferay 6.2.0 CE M4 tomcat bundle/MySql 5.5.17. I followed steps: Installed fresh setup of above mentioned version Created a role "test-role", defined its permissions add given this role permission to "access Document and Media in control panel", "add subfolder" Created a user "test-user" and associated this user with the "test-role" Created a document and media folder "test-folder" with admin user. Loggedin with "test-user" and this user has permission to add sub-folder to "test-folder" because of super priviledges given to his role Use-case 2: Loggedin with admin again Removed test-role permission to add sub-folder test-user now can't add subfolder to "test-folder" but if te test-folder permissions are updated to give "Add-SubFolder" permission to test-role; test-user can add sub-folder to it So permissions are working fine

          People

          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 26 weeks ago

              Development

                Structure Helper Panel