Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the permissions of multiple liferay articles

The website I am working on has 600 articles and all of them have the view permission off for guest.

Is there any easy way to change the permission for all web content to view for guest users? I really would like to avoid having to manually change each article if at all possible.

like image 946
coltonfranco Avatar asked Dec 03 '25 04:12

coltonfranco


1 Answers

You can set VIEW permission for Guest role for all journal articles (even for future ones).

Go to Control PanelRoles Guest Define permissions and in Add permissions select box select Site content: Web content. Then choose View permission in Web content section and save. Now all web contents (journal articles) will be visible to guest users.

OR

You can also write a short script to programatically set VIEW permissions to all the web-contents created till now.

like image 186
milos.zikmund Avatar answered Dec 06 '25 04:12

milos.zikmund



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!