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

TestCafe - User Profile and Log In

I have a scenario where I need to use the current user chrome profile. I expected that I don't need to log in to web app. I thought TestCafe would use stored credentials. But all tests are redirected to login page. I launch testcafe tests with flag…
-1
votes
1 answer

How to adapt WPF application according to user role in SQL Server?

I am building a WPF application with C# and EDMX file as my data access layer. I have two security roles in SQL server 2008, AppUsers and AppAdmins. Yes, AppUsers members do not have permission to edit one table lets call it T, only can select data…
Vlad
  • 2,739
  • 7
  • 49
  • 100
-1
votes
1 answer

Rails: set up polymorphic associations for two user types

I'm starting to code a linkedin-like website in Rails for my thesis that would enable members to post job offers (employers) and other members (employees) to respond to them. I've been trying to wrap my head around the data model and associations -…
-1
votes
1 answer

Wordpress User Roles inaccessible after updating Wordpress to version 4.9.7

After updating to the latest version of Wordpress 4.9.7, I now get these error messages at the top of my website: Warning: array_keys() expects parameter 1 to be array, string given in…
Dayley
  • 166
  • 1
  • 2
  • 13
-1
votes
1 answer

Display role name on my_account page WooCommerce

I use this code in functions.php to display user role in woocommerce My-Account page (Welcome user...etc.): function get_user_role() { global $current_user; $user_roles = $current_user->roles; $user_role = array_shift($user_roles); …
Max Alexev
  • 11
  • 4
-1
votes
1 answer

Roles and read only fields in MS Dynamics CRM

I am using Microsoft Dynamics CRM 2011. We have an entity with a "password" field. This field appears as a MD5 hash. Most users can manually modify this MD5 hash. Some other cannot. I can't find the setting specifying what users can edit this…
-1
votes
1 answer

Wordpress Registration user role

The default user role of my wordpress registration is a "subscriber". It is possible to create a Editor registration? or Author registration too? any plugins can help?
Dis Guise
  • 1
  • 1
-1
votes
2 answers

User Roles and Permission in Codeigniter

I am developing an application with module based codeigniter. Now I want to add user roles and permission. What is the standard way of giving permission to the user ?
-1
votes
1 answer

Display content in blade according to role column in the database using Laravel

I have a view where I want to display some content according to the adminRole column in the admin table. My controller public function adminNotificationList(){ $admin= Admin::all(); return view('Notification.notification_admin',…
Mill3r
  • 544
  • 1
  • 10
  • 31
-1
votes
1 answer

Giving user roles with registration

I have a problem with user roles. I want to give role ID=1 during registration. I am using Visual Studio registration site. I have two SQL tables, AspNetRoles with my Roles and AspNetRoles with UserID and RoleId. But I don't know how to set a role…
MrNobody
  • 1
  • 1
  • 4
-1
votes
1 answer

Managing custom post backend list table based on user info.- Wordpress

I am working with a multivendor electronic shop.The website has different roles.One of the roles are shop owner.Under this role different electronic shop owner can register.like owners for whirlpool, singer , samsung...etc. Another function is…
user3100283
-1
votes
1 answer

Spring Security check if User has RoleGroup

I have the domain: User hasOne RoleGroup hasMany Role Exemples: RoleGroup: Admin, Professional, Client, ... Role: ROLE_ACTION_1, ROLE_ACTION_2, ... How I check if a user has a RoleGroup with annotation @Secured? I need to check if user contains…
Victor Soares
  • 757
  • 1
  • 8
  • 34
-1
votes
1 answer

Which woocommerce plugin should i use for my need?

I have this client who has a subscription plan system. For example, with the premium pack you have access to 4 magazines + 1 video + 1 free magazine. So i have to set a limit of product to my cart per user role, and multiple rules per products. I…
Zac
  • 121
  • 2
  • 10
-1
votes
1 answer

Yii2: Proper Structuring of Actions based on User Roles

I'm quite worried with the current way I structure actions in my controllers. I'm not sure which is the more adopted method for implementing actions that show different things for different users based on their type. For example: Creating a Model…
TechMafioso
  • 135
  • 4
  • 16
-1
votes
1 answer

How to assign Role to user on ASP.NET 4.5 MVC app

I created MVC web app using ASP.NET 4.5 Templates. In Web.config, I changed the SQL Connection string to point my existing SQL Server database. I run the project and created necessary tables into my SQL Server Database. I also create a new user. My…
NTMS
  • 816
  • 7
  • 22
1 2 3
62
63