Add Resource Permission in Liferay 6.1

4 comments

Using ResourcePermission we can easily provid permission on resources. Earlier in LR5.X we were using ResourceLocalServiceUtil for the same purpose.
Look into this post for more information on how to add resource permission in LR5.X

For LR 6.1

Similar way we can unset permission on any resource for any role using below approach.

Next PostNewer Post Previous PostOlder Post Home

4 comments:

  1. Good post, it helped me get started on permissions with files. There is a bug though. On line 11 you use '+', but you should use '|' (bitwise or). The problem is if the value is already set, you will mangle your permissions. In the case of view, the addition carries over and enables the add discussion permission.

    ReplyDelete
    Replies
    1. Good to know that my post helped you .!!
      Line no 11 bug was because of code highlighter any ways i have corrected the same.

      Thank You,
      Jitendra

      Delete