简体   繁体   中英

Restrict certain user roles to access a view page programatically drupal8

I have a view for documents list. I want to restrict certain user roles per department to access this view page. How to solve this? Any hook function available?

You can try the built in access control of views

在此处输入图片说明

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM