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

User roles vs. user permissions using apache shiro

I am trying to model some complex permission management system using apache shiro. English not being my native tongue I am afraid I might be missing some of the subtleties of terms such as "Roles", "Permissions", "Rights" & "privileges". For example…
epeleg
  • 10,347
  • 17
  • 101
  • 151
0
votes
1 answer

Wordpress get user role with php

I'm creating a page in my wordpress site, with a list of the users and need to get the title of their role with php. But, every thing I tried failed. Anyone who can help please.
0
votes
1 answer

WordPress - Hide posts of other roles in backend

I've two roles, Members Recruiter. Both will post in Custom Post type "Companies". When they about to edit/delete their own posts, I don't want them to see other posts posted by other roles. At present it is displaying title of other role's…
Shoeb Mirza
  • 912
  • 1
  • 11
  • 30
0
votes
1 answer

Display Sidebar and Pages based on the User Role in Laravel 5.1

I am Using the Same Login Box and i am Differentiating the Users after Login using Auth::attempt() function. In my project i have only one Sidebar which Contains all the Menus that are required for my project. I have Four Login roles namely Admin /…
Naresh Kumar P
  • 4,127
  • 2
  • 16
  • 33
0
votes
1 answer

Different user types in a Google App Engine - Java application

I've read that Google App Engine (GAE) provides user authentication using Google Accounts. My app caters to 3 different user types with different functionalities for all. I'm not able to figure out how do I proceed with setting up such a backend.…
Raghav Kukreja
  • 165
  • 2
  • 6
0
votes
1 answer

Role based access to service methods using spring and mongodb

I have a requirement where I need to use role based access to service methods. I have restful services and i use spring-data to interact with MongoDB. There are some of the restrictions that I have. I deal with a document in DB called…
Ram Viswanathan
  • 181
  • 3
  • 14
0
votes
0 answers

How to set roles or remove authorization requirement for deployed application in Tomcat?

I'm new in Tomcat and whole Java. I installed Tomcat and set up admin role. Then download and build sample application using Maven. Then I deployed .war file into Tomcat and it appeared in Tomcat Applications Manager…
General Failure
  • 2,421
  • 4
  • 23
  • 49
0
votes
1 answer

laravel : redirect to admin when logged in user is admin using the Auth scaffold

I'm trying to build a web app using laravel for the backend! I used the php artisan make:auth command to generate the basic login logic and views. Now I'm trying to redirect users according to the admin field in the users table in the database. The…
0
votes
1 answer

Check Roles in Webmatrix

I add two users and two roles in the webpages_UsersInRoles. I am trying to check to role of the user logging into the application. Here is my code: var UserId = WebSecurity.GetUserId(HttpContext.Current.User.Identity.Name); var User =…
tnlewis
  • 323
  • 1
  • 3
  • 15
0
votes
3 answers

Laravel 5.2 with Entrust - Class name must be a valid object or a string

I have a problem when register a user, after save user in my table users, I try assign role for this user but I receive the error : Class name must be a valid object or a string. my code is…
Jose
  • 3
  • 1
  • 3
0
votes
2 answers

Listing the user privilèges in a specific folder alfresco cmis java

I want to know if there is any java method or any topics about how to know user role on a specific folder (Consumer, Contributor, Collaborator...) For my project I use differentes methods, for example: uploadfile, create folder ... Now I want to…
Yagami Light
  • 1,756
  • 4
  • 19
  • 39
0
votes
1 answer

Assign posts to specific logged in users?

I am looking to see if it's possible to assign posts to specific logged in users? For example: Example: John Smith (member) logins into my site, and he can only see posts that have been assigned to him. I have seen the Members plugin called Members…
0
votes
2 answers

Magento Error when Accessing User Roles Section

I have a Magento site in which there are about 20-25 extensions installed, among which 7 are commercial, which means that those 7 extensions are fully encrypted. Also none of these extensions use the User Roles & Permissions section, in the Admin…
Knowledge Craving
  • 7,955
  • 13
  • 49
  • 92
0
votes
1 answer

Using Concerns to Extend User Model With Roles

I'm experimenting in building a roles-based data structure in Rails using Concerns with role-specific methods. I've explored other solutions, like STI, polymorphic associations, but opted to try this method. All attributes depicted are stored in…
scoots
  • 715
  • 4
  • 16
0
votes
1 answer

How to call all articles in get_posts() include

I want to get posts by WP user level. I use get_posts() for getting posts and in arguments I use include parameter. Like this: $private = array( 'numberposts' => $st_cat_post_num, 'orderby' => $st_posts_order, …
deemi-D-nadeem
  • 2,343
  • 3
  • 30
  • 71