Questions tagged [user-roles]

A user role is a group of users that share the same privileges or permissions on a system. Use this tag for questions about how user roles work in a particular security framework, or questions about the implementation of user roles in your program.

A user role is a group of users that share the same privileges or permissions on a system. For example, a blog platform may define a group of platform admins and groups of blog admins, blog editors and blog readers.

The concept is linked to , as a user role is a group of users who share common user permissions. It is common that a system allows users to have several roles, the user then has the union of all the permissions of their roles.

Use this tag for questions about how user roles work in a particular security framework, or questions about the implementation of user roles in your program.

944 questions
0
votes
3 answers

Java Servlet/JSP: Checking whether role is NULL or admin in Database

I have created the following function which is supposed to check whether the "role" column in my Database contains admin or is Null (which means it's a regular user). I try to test it in my Servlet class as shown in the code below but it redirects…
user10479159
0
votes
1 answer

Assign Roles on WordPress Multisite (Except Customer) in Woocommerce

I can’t Assign Roles on WordPress Multisite (Except Customer) in Woocommerce. File Path: \wp-content\plugins\woocommerce\includes\wc-user-functions.php Function Name: wc_modify_editable_roles Code before Changes: function wc_modify_editable_roles(…
0
votes
1 answer

Restrict Access to Products Based on Role WooCommerce

I am currently attempting to prevent users from being able to see products and categories based on their role on my WordPress site with WooCommerce. Is there a recommended plug-in or change in the code I can implement to solve this…
kirby
  • 33
  • 6
0
votes
0 answers

Show badge based on multiple user roles in Wordpress+WooCommerce

I am looking to display content based on multiple different user roles. So, if a user has the role subscriber + one of other roles, the content will display, if no, other message will display. I need to display multiple badges at My Account page…
0
votes
0 answers

Symfony: Storing user roles where can be created and changed by a more privilidged user

According to this piece of symfony's documentation tells you how to store and load a user from the database. But I have an question, let suppose there is a user with role ROLE_ADMIN and has the ability to create new application roles, for example…
Dimitrios Desyllas
  • 9,082
  • 15
  • 74
  • 164
0
votes
1 answer

Spring Boot: Who to write a custom Prefilter, considering the user role?

I need some kind of @preFilter (or, if it isnot possible than @postFilter) to filter the results of my REST API. I can not use the preFilteranotation, because I need to consider the user role. I have three different roles: user the normal user,…
Max
  • 1,368
  • 4
  • 18
  • 43
0
votes
1 answer

Error providing access to other users on Google Cloud AutoML

I am using a service called Google Cloud AutoML Natural Language Processing. Click here for more information on the product I am using: https://beta-dot-custom-vision.appspot.com/text/overview Everything is working fine and I need to say the product…
0
votes
0 answers

Best way to store menu list in Asp.net Mvc

You have an Asp.Net Mc project and you use master layout structure, IoC, repository pattern etc. You should generate menu according to users role permissons. For example if the user is not admin, user should not see the menu item in your menu. And…
0
votes
1 answer

Display buttons based on the user roles in ASP .NET MVC 5

I have to display the buttons in the view based on the roles, let's say I have roles like admin user and default user wherein admin user will be able to see the delete, modify and add buttons but default user can only search. Currently, when a user…
Bhargav Konda
  • 169
  • 1
  • 9
0
votes
1 answer

Security Architecture - Settings to drive UI and Priveledges (Rights) - Role-Based, per User-Account

How do large companies implement their security requirements which are centralized and used to drive things people can do (allowed to call a certain web-service, submit an order, etc.) as well as to drive UI (disable buttons, menu options,…
Leon
  • 3,311
  • 23
  • 20
0
votes
2 answers

How to I get user role data in controller and displaying laravel

How do I display by dropdown in view page? User model: public function registrationRoles(){ return [ 3=>'Teacher', 4=>'Student' ]; } My view page