View access based on roles

Solutions

This didn't work for me either. I worked around this one by creating a panel page and using two different variants, placing each view block in the appropriate page and restricting the access based on user roles.

Tags: Views / Drupal 8 / Users

Similar questions

How to restrict access to some nodes based on roles or users?
I am using Drupal 8 and I am a little bit confused that there is no core functionality to restrict the access to some nodes based on roles or users. I found PageAccess, which is marked as unsecure and ACL/Access Control which are both dev and not working on my system. Isn't there any option to do so? I need the private sector on my site and can't b...
how to restrict access in routing.yml based on roles
I know how I to restrict access in the routing.yml file based on permissions, but how can I do it based on roles? This is how to do it by permissions: How to do it based on roles?
How can I prevent certain roles from editing other roles?
I have user roles User Role 1, 2, and 3. I want a simple module that will make User Role 1 only be able to edit and administer users in User Role 2, and not User Role 3. Does anybody know of any module or other easy method to do that? It seems like there must have been somebody else who did something about their moderators being able to delete thei...
How to ignore default roles in drupal roles
I don't want to show the default roles to end user and want to ignore anonymous user and authenticated user. How can I remove these two roles from roles array. Shall I hard code the role names and rid say as in example below? I have used this code. Thanks for your help.
Only allow certain roles to publish content, other roles can save as unpublished?
I have a Content Admin and a Translator Roles. Content Admin's can create, edit, delete, and publish content (this is working fine) Translator's shouldn't be allowed to publish content, they should only be able to create and edit translations. (it should save as unpublished). Anyone know how to achieve what I'm trying to do in Drupal 8? Or know if ...
When the admin changes(Add/Remove) roles of the user, how to get assigned and removed roles of that user?
There are more than 20 user roles(Editor,approver,new admin..) in the project. Whenever the admin assign/delete the role to user then the user should be notified with email. Email should say Hey Prabhakar You have been assinged to following roles or you have been removed from following roles.

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.