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.
Gracias :D
ReplyDeleteGood 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.
ReplyDeleteGood to know that my post helped you .!!
DeleteLine no 11 bug was because of code highlighter any ways i have corrected the same.
Thank You,
Jitendra
Nice Post it helped me
ReplyDelete