Questions tagged [roles]

In various access control systems, roles define a group of users and organize permissions into a more manageable structure.

In various systems, roles define a group of users and organize permissions into a more manageable structure. In systems which feature roles, a user may belong to many roles, and typically roles can be nested hierarchically.

Roles are a common feature in operating systems as well as database management systems.

Further Reading

3030 questions
1
vote
1 answer

Sitecore: Saving changes to a "form", based on a master template

In Sitecore, how could one go about creating following solution: We need to a have a master "form" that is administered from the "headquarter" eg. a SC admin account builds and maintains it. A "copy" of this master form should should be accessible…
KMN
  • 306
  • 2
  • 17
1
vote
1 answer

Sitecore: Implementing mapped network drive, and applying rules to the folder structure

How could one go about integrating an "external" mapped network drive, and have the structure relate to some security roles? The users should only be able to have access (read/write) to files in specific folder/subfolders, as permitted by their…
KMN
  • 306
  • 2
  • 17
1
vote
2 answers

customizing simple membership to use existing tables

I have a User table in my repository pattern database and I am looking to connect the Roles. What is the best way to customize simple membership?
Jay
  • 3,012
  • 14
  • 48
  • 99
1
vote
2 answers

Spring Security intercept url appears to be skipped/ignored

I would like to have spring security configured so that one specific resource is locked down to a group, the rest are available to any logged in user. My security.xml looks like this
t0mmyw
  • 737
  • 3
  • 10
  • 22
1
vote
1 answer

MVC4 Roles Authentication Groups

I have been trying to implement role based security on my MVC4 application so that some controller actions are blocked to non admin members. I have found this information page on MSDN:…
Jay
  • 3,012
  • 14
  • 48
  • 99
1
vote
2 answers

ASP.Net MVC - Showing Model data based on Roles

I have a View which needs to show and hide details based on the users role. I have 2 options using an inline if statement in the View to show and hide details Create multiple partial views and use to controller to detect the role and then load the…
ace
  • 215
  • 6
  • 17
1
vote
1 answer

Zend Framework Code explanation (roleHasAcces)

I found this in the old code that I'm trying to refactor but I have no clue what it means. Can someone explain this rule of code to me? if (!LibraryName_Feature_Access_RoleHelper::roleHasAccess($plan_code, 'can_subscribe')) { …
nielsv
  • 6,540
  • 35
  • 111
  • 215
1
vote
1 answer

Authentication & Roles management for different users, howto solve this?

Could you help me to solve this ? I'm creating a management application with to different users : "User" they are definided in app, that's management person, won't change, and "Student" they are definided in a table that would growing for the next 6…
1
vote
0 answers

Difference between `net user /domain ` vs `System.Web.Security.Roles.GetRolesForUser()`

Inside an MVC3 applciation I check User.IsInRole(@"domain\groupname") for myself and it returns false If I call System.Web.Security.Roles.GetRolesForUser() I get 19 roles back, and the one I want to check is NOT amongst them. If I open a cmd window…
BlueChippy
  • 5,935
  • 16
  • 81
  • 131
1
vote
1 answer

ion auth how to handle access via groups and permissions

I am looking to use Ion Auth as an authentication library in one of my newer projects but I cant seem to understand how to handle permissions to perform certain actions. For example, I have deals and items and a group "A" which can update both deals…
Ahmed-Anas
  • 5,471
  • 9
  • 50
  • 72
1
vote
2 answers

Rails 4 devise , How to sign up new users if signed in?

I want to block signup for non-admins so that only a superuser/administrator can add new users. How can I achieve that? I tried following the method mentioned here: Devise before filter that prevents access to “new_user_registration_path” unless…
aelor
  • 10,892
  • 3
  • 32
  • 48
1
vote
1 answer

How to display on form and edit collection of roles of user entity [symfony2]?

I had a 'User' entity which contains one 'Role' entity. Controller code: /** * @Route("/root/users/edit/{id}", requirements={"id" = "\d+"}) * @Method({"GET", "POST"}) */ public function usersEditAction(Request $request, User…
TroyashkA
  • 49
  • 3
  • 9
1
vote
1 answer

Symfony2: Something like a Role Provider?

In my web application, I want my user's to be able to create roles and add users to them dynamically. The only thing I imagine, is to edit the security.yml every time, but this can't be the best solution, can it? It would be very nice, if there is…
hice3000
  • 186
  • 3
  • 12
1
vote
1 answer

Using the Rails Console, how do I add a new role to a user when using role_model?

Newbie here trying to get up and running with role_model and CanCan. I've added both gems to my Gemfile. Set them up and can verify that they are in fact working. However, when I try to add a new role to a user in my Dev DB, the rails console rolls…
dnyce
  • 415
  • 1
  • 6
  • 20
1
vote
1 answer

Drupal6: Administer Menu Gone

In Drupal 6, the administer menu is gone. The super user (uid = 1) can see it, but the Admin role, that has the correct permission, does not. If a user with the Admin role were to go to the pages, they could access them (like nodes/add/content_type…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699