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
-1
votes
1 answer

j2ee - User with multiple security roles

I am developing a Java Servlets webapp which will use container based security to authenticate users in. Now my question is that can a User be mapped to more than one security role ? For example in my case-: A User can be a Teacher Co-ordinator (…
Kramer786
  • 1,238
  • 1
  • 12
  • 26
-1
votes
1 answer

ASP.NET: Form Based Authentication VS Application Internal (Domain Specific) Roles

I am new to ASP.NET and I am working on ASP.NET Web Site Application in which i have some Internal (OR Domain specific) Roles. Like, BoardOfDirectors, Managers, Secretary belonging to Employee class and ShareHolder another Role, another one as…
Fakhar Anwar
  • 295
  • 1
  • 3
  • 20
-2
votes
1 answer

Wordpress capability to edit only uploaded files

I need to assign to an user role the capabilities for the user to only edit his own uploaded files (instead of edit all files like happen for the capability upload_files). Considering that there is not a native capability for that, how can I achieve…
hhh
  • 394
  • 2
  • 15
-2
votes
1 answer

How to use Flask-User to create account holder and sub-users

I'm learning to make a project using Flask and Flask-User and MongoEngine. What I want to do is an account holder (a company) signs up to use the app and then that account holder can create sub-user access with limited privileges for their staff.…
ktcao
  • 1
-2
votes
2 answers

Debugging Symfony 3.4 live - 403 page, possible User Roles issue

I am getting a 403 error when clicking on a link to the /admin/stats page when logged with User Role: ROLE_EXPL which should have access to the page. It works fine for ROLE_ADMIN which also has access to this page. Looking at the code, there are…
LeeTee
  • 6,401
  • 16
  • 79
  • 139
-2
votes
1 answer

Don't allow user role buy option when stock is low woocommerce

I need something like this : It is possible to set that when we have last 5 pcs on stock , some user role (wholesale) cant order that product ? For example if we set quantity to 6 pcs than wholesale customer can will order only 1 pcs to stay…
Lukas
  • 11
  • 1
-2
votes
1 answer

User roles permissions PHP

I'm trying to create permissions for 3 diferent types of users Normal Admin SuperAdmin And I don't know how or where to start doing it because I'm still very weak with php, can someone give me an example of what to do please? How to use Session…
-2
votes
1 answer

Wordpress Redirect for User Role

I'm using Wordpress with a User Role that should be redirected to /userrole when they try to visit /. Can anyone help me out? I tried a few things but it doesn't work. This is what I have tried so far: function redirect_users_by_role() { …
TiBee
  • 3
  • 2
-2
votes
1 answer

Create a function in WordPress to change a users role when they click a link

So I have been researching for a while but to no avail. I am very new to php and back end WordPress functions. I would like to create a function that when a user clicks on a link it updates their user role. This function is needed because I am…
agoodacre
  • 35
  • 4
-2
votes
1 answer

Adding Role Property to the existing MVC 5 web app

I have created a project based on the sample posted on the official ASP.NET site: MVC 5 with 2FA, email confirmation, password reset SMS,Two-Factor Authentication. On the other hand, although there is a separate table for Roles, I have no idea how…
Jack
  • 1
  • 21
  • 118
  • 236
-2
votes
2 answers

Display WordPress User Role

I have a ticket support form on my site which right now has a field which returns (in the admin area) the name of the person who submitted the form. Anyone know how I would modify this to display their user role instead? ie. Subscriber, Editor,…
edit7279
  • 175
  • 5
  • 15
-3
votes
1 answer

How to hide Published Custom Post if a users membership has expired

WordPress Experts can anyone help me with this topic? I am creating a directory for a client. They have a membership site using woocommerce subscriptions. I created a custom post type for their members to manage their listings. I am trying to hide…
-3
votes
1 answer

Show different home page based on user role in WordPress

I've got three home pages: 1. home 2. home-student 3. home-teacher Based on their custom user role (student, teacher or not logged in) I would like to show a different homepage. My knowledge of PHP is pretty basic, so I'm hoping for an easy answer…
1 2 3
62
63