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

In Sylius, how to choose the user role depending on user data?

In Sylius (Symfony3 bundle), I have customized the register form to add some fields, in particular 'type of account' (pro or private). According to the type, some functionalities will not be enabled. In order to do that, I was thinking about giving…
wyllyjon
  • 505
  • 1
  • 5
  • 20
0
votes
1 answer

how to give access for users (editors actually only for one specific editor such as id is '3333') to leaky paywall's subscribers list - Wordpress

Currently I'm looking for a way to give access to the subscribers list which is belongs to the Leaky Paywall plugin. The main goal is that when the editor (3333) will login then he should have access the subscribers list like the administrator has…
Moyen Uddin
  • 77
  • 1
  • 11
0
votes
1 answer

laravel- how can i get a user with all roles and all permissions with per role in orm in 5.1 with zizaco?

I create all model and relations . one user have many Roles and one Role have many Permissions. i want a elequent that give a user with all roles and all permission for per role.
Hamid Naghipour
  • 3,465
  • 2
  • 26
  • 55
0
votes
1 answer

Allow specific user role to place order without pay woocommerce

I want that user having special role assigned can buy product from my store without pay. I searched around and found Role based shipping/payment plugin. This plugin works fine for other user role but it do not allow user having special role to place…
dev tester
  • 327
  • 1
  • 10
  • 25
0
votes
1 answer

Error A circular reference has been detected on symfony 3

i do this steps: 1.) I call my api endpoint: http://localhost:8000/api/addrole 2.) This is the controller called: /** * @Rest\Post("/addrole") */ public function addRoleAction(Request $request) { $userid = $request->get('userid'); …
Ali Briceño
  • 1,096
  • 2
  • 17
  • 44
0
votes
1 answer

ASP.NET MVC User based Privileges for Controller Actions

I have application where I want to grant or prohibited the roles to access the Controller. Admin can change the the privilege of roles in roles management. below is pic of role management where admin can change the privilege How to apply…
Meer
  • 656
  • 9
  • 18
0
votes
2 answers

How to handle database users in asp.net c#

I am making a website in asp.net. In my application, I divided the users into two categories. One is normal users and other is admin users. Admin users will be probably one or maximum two users. I decided to create separate two database users for…
user3671390
  • 69
  • 1
  • 2
  • 13
0
votes
1 answer

How to reload tab bar items after user changes role

When tap a button, app user can switch between two roles, user and manager. In my tabBarViewController's viewDidLoad method, if userRole == "manager" { let mainStoryboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil) …
Dan
  • 301
  • 3
  • 21
0
votes
1 answer

Role ID does not exist when i using dynamic dropdown list

I create a dynamic dropdown list with this code : [AllowAnonymous] public ActionResult Register() { var roles = db.Roles.Select(r => new { RoleID = r.Id, RoleName = r.Name }).ToList(); ViewBag.Roles = new SelectList(roles, "RoleID",…
0
votes
1 answer

EmberJS Authorization and User Roles: Best Practice

Suppose I am building a web application through which users can make and sell hot dogs. I am using EmberJS for the client. Background: I am currently implementing authentication using Ember-Simple-Auth, which seems to be a fairly standard library…
0
votes
1 answer

Custom post type count - change user role

I've been trying to figure out the solution for the following scenario. I've got a custom post type - job_listing using the WP Job Manager plugin. What I am trying to achieve is to change the default user role depending on the job_listing post…
Joe Bloggs
  • 1,410
  • 2
  • 24
  • 53
0
votes
1 answer

Different User custom fields for different user roles at add user time

I have created various user roles in my wordpress website. I want to add extra custom fields based on particular user roles. For Example, If user role is lawyer then "state" field is added to user at add time and also update time. I have created…
RK12
  • 472
  • 3
  • 11
0
votes
1 answer

How to assign Page-wise privileges programmatically in asp.net?

I have an asp.net application which has web.config file in every folder of the application. Every folder has many aspx pages in it.I need to assign/deny privileges through coding for every individual pages of folders.The privileges is role based…
Abilash
  • 113
  • 6
  • 16
0
votes
1 answer

Magento 1.9.2.4 Admin Permission Role and Users Issue

In magento , I can create a sub-admin giving access to limited resources. But if I allow any sub-admin to create new sub-admin role and user then he is allowed to give all the access to the new sub-admin even which are not available to him.. (I mean…
Yogita
  • 170
  • 9
0
votes
2 answers

Show parts of view for certain role and hide a nav button from not logged in users

I created an MVC project in .net for school and used this code to only show certain parts of my view to certain users with the specified role. public ActionResult About() { if (User.IsInRole("Begeleider")) { var…
Burst of Ice
  • 386
  • 2
  • 6
  • 23