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
0 answers

Yii2 startup kit rbac role permission

Im using this startup application for my app trntv/yii2-starter-kit, Is there any option to add permissions and assign permissions to role using front end? how can i integrate the front end for rbac? please help me to do the frontend for roles and…
sk2
  • 1,171
  • 1
  • 10
  • 28
0
votes
1 answer

Rails - Role_Model, removing a role assigned to a user

I have Rails 4 with Role Model for role assignment. I can't figure out how to remove a role that was assigned to a user. I have two roles in my profile.rb, :manager and :student. I have a user that has been assigned both roles. I want to remove…
Mel
  • 2,481
  • 26
  • 113
  • 273
0
votes
2 answers

Is it possible to remove role or flush cache in jboss at runtime?

In my webapp, running in Wildfly, there are several roles defined. User is given several tabs for each role he has (e.g. admin, support etc). User/admin can also enable/disable roles for himself or for other users in browser. But when the role is…
gmode
  • 3,601
  • 4
  • 31
  • 39
0
votes
1 answer

Fix Wordpress broken database : capabilities / no role assigned

I'm working on a Wordpress website having this bug : 9000 users should be "subscriber" (Wordpress role), but they have no role assigned now (probably due to a users import script) : Image : https://i.stack.imgur.com/PLKpW.jpg In the meta_value, we…
user2326202
  • 1
  • 1
  • 2
0
votes
1 answer

Only list custom user roles (filter array)

I use $available_roles = $wp_roles->get_names() which results in the following print_r output with all available user roles: Array ( [administrator] => Administrator [editor] => Editor [author] => Author [contributor] => Contributor …
golabs
  • 169
  • 1
  • 11
0
votes
0 answers

Rails 4, Devise, Role Model and CanCanCan

I'm trying to figure out how to define cancancan abilities in my rails 4 app. I use devise for authentication. When I try: if user_signed_in? can :crud, Profile, :user_id => user.id #[for themselves] I get an error that says: undefined…
Mel
  • 2,481
  • 26
  • 113
  • 273
0
votes
1 answer

Rails Devise Role Model & CanCanCan - defining abilities

I'm trying to define abilities in CanCanCan. I can't figure out the syntax to get started. I use Role Model for my roles and the roles are defined in my Profile.rb. Profile.rb belongs to User.rb. I am trying to check if the user has the role…
Mel
  • 2,481
  • 26
  • 113
  • 273
0
votes
1 answer

Laravel database sessions

I'm building a Laravel website and I'm using the database driver to manage sessions. I created the sessions table in database and migrated with php artisan. Everything works as expected. What I really want to do now is to check the role of the users…
user4839009
0
votes
1 answer

Wordpress user roles/permissions

I have an admin user, and a contributor user. Now when the contributor makes a new page it gets sent for approval by the administrator user. This is good , however i want this same ability but for when editing pages. So if a contributor edits any…
Matthew Smart
  • 1,301
  • 4
  • 21
  • 37
0
votes
0 answers

Rails 4, Devise, Role Model and CanCanCan - Defining Abilities

I am using Rails 4 to make a web app. I am trying to use CanCanCan to define abilities for the various roles. I have a User model and a Profile model. Each user can have many profiles. Each profile can have a different role. In my Profile.rb, I have…
Mel
  • 2,481
  • 26
  • 113
  • 273
0
votes
1 answer

Rails, Devise, Role Model and CanCanCan - defining abilities

I am using Rails 4 to make a web app. I am trying to use CanCanCan to define abilities for the various roles. I have a User model and a Profile model. Each user can have many profiles. Each profile can have a different role. In my Profile.rb, I have…
Mel
  • 2,481
  • 26
  • 113
  • 273
0
votes
0 answers

Limit courses creation in the front end per user role

I'm trying to set a limit to course creation using the roles of S2Member. For example for the level one, the user can create only 2 courses and 2 units. I added this code but it works only from the back-end. In the front-end creation (using wplms…
Amine Richer
  • 23
  • 1
  • 6
0
votes
1 answer

Add roles column to DataGrid in ASP.NET Web Form

I have Web Form in ASP.NET in which I would like to show a table with all users in my app. There should be user name, user email, last activity date and user roles. Currently I has this:
holocen
  • 227
  • 1
  • 3
  • 10
0
votes
0 answers

UserManager doesn't recover stored Roles from user ( Identity 2.1 ASP MVC 5)

The roles stored in the database are not recovered by UserManager.GetRoles(userId); I have use Identity before and never happend this... don't know what I have done this time or what's happening... How I create user and his role: var result =…
0
votes
1 answer

Non Admin users are not able to see all the language in "Language" dropdown in sitecore content tree

We are facing issue with non- admin user of sitecore.The admin user of sitecore can see all language which is there in Sitecore->System->Language, we have total 12 language there. When we create user who is Sitecore client author and publisher and…