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

Unable to delete ASP.NET role

I have a set of four ASP.NET roles that I have been trying to delete - they never want to die. Simply put, I've deleted them successfully by using the website administrator tool and by running the stored procedure: exec aspnet_Roles_deleteRole…
Jason Kealey
  • 7,988
  • 11
  • 42
  • 55
1
vote
1 answer

MVC roles with custom properties

I'm looking into how to implement authorization in MVC 4 (.NET 4.5), and have specifically been reading about SimpleMembership. Is there any typical or accepted way in MVC to have roles that have additional properties aside from a name? For…
Eric
  • 5,842
  • 7
  • 42
  • 71
1
vote
2 answers

Subject Oriented or Refinements with builtin python objects

Goal: Extend abitrary classes with roles that are only valid in a certain context. This works: # from https://github.com/niccokunzmann/wwp/blob/master/C_builtinTypes.py from relative import roleOf, useRoles @roleOf(int) class NaturalNumber: #…
User
  • 14,131
  • 2
  • 40
  • 59
1
vote
1 answer

Authorization::Roles doesn't work in Catalyst app

I've tried use Authorization::Roles in my Catalyst app. Authentication works right but when I use $c->check_user_roles("admin"); it always returns false. What's wrong? Some config: store => { class => 'DBIx::Class', user_model =>…
edem
  • 3,222
  • 3
  • 19
  • 45
1
vote
2 answers

How can I get the role description from the ASP.NET membership database?

How can I get the role description from the ASP.NET membership database, other than querying the database directly?
Sprintstar
  • 7,938
  • 5
  • 38
  • 51
1
vote
1 answer

How to redirect to homepage.do when user has no right to access a page in struts?

My application is using struts 1 and the pages are role-protected (i.e.: a user cannot access a page if his role doesn't allow him) using the attribute "roles" of the action path in the struts-config.xml:
Pierpaolo
  • 567
  • 3
  • 7
  • 17
1
vote
2 answers

Asp.net Login Status not Working

I'm starting to use Role Management in my website, and I'm currently following this tutorial: http://www.asp.net/Learn/Security/tutorial-02-vb.aspx . I'm having a problem with the asp:LoginStatus control. It's not telling me that I am currently…
contactmatt
  • 18,116
  • 40
  • 128
  • 186
1
vote
2 answers

Can one person hold "Project manager" and "Software Architect" at the same time?

Is it possible for one person to take the two roles of "Project Manager" and "Software Architect" at the same time for the same project?
1
vote
3 answers

Creating and serving temporary HTML files in Azure

We have an application that we would like to migrate to Azure for scale. There is one place that concerns me before starting however: We have a web page that the user is directed to. The code behind on the page goes out to the database and…
Feech
  • 439
  • 1
  • 6
  • 14
1
vote
1 answer

Wordpress XML-RPC, How can I get user role or know if a user is able to publish posts?

I need to check user permissions through XMLRPC to know if is able to publish posts. I checked several XMLRPC methods without success, the new getUsers from WordPress 3.5 seems ideal but I need to support older versions. How can I validate the user…
rubdottocom
  • 8,110
  • 10
  • 39
  • 59
1
vote
2 answers

More than one role for Java EE user?

Can a user be assigned more than one role in Java EE/Java? Like a user can be administrator and reporting-user at the same time. Both user roles can access the same resources but the admin can also access admin pages.
Muhammad Imran Tariq
  • 22,654
  • 47
  • 125
  • 190
1
vote
1 answer

configure role in webconfig asp.net and site map

I have something with role execution with my Sitemap. Let me explain it step by step. Login UserA has RoleXYZ. Inside myFolder, I have two resources: file1, file2. My web.config configuration for this part:
Alex Bob
  • 23
  • 1
  • 5
1
vote
2 answers

Windows Server 2012 routing and remote access instalation failed

I installed windows server 2012 and one role, Routing and Remote Access. There are two big problems. 1) This role, it wants DirrectAccess to be enable, but I couldn't find where is anything as administration of DirrectAccess. 2) Before I want…
L.Šesták
  • 46
  • 1
  • 7
1
vote
1 answer

Why I see '0' when I use current_user.has_role?

In view I set validation for roles (gems cancan and rolify). As example in HAML =if current_user.has_role? :admin = link_to current_user.name, '#' Generated HTML Administrator " 0 " Why I see '0'?
Stack Stack
  • 147
  • 1
  • 1
  • 11
1
vote
1 answer

SugarCRM GetAllRoles() to Retrieve Data for Custom Module/Page

I've been working with SugarCRM by creating a custom module and a custom PHP file to that module. I need to display all the Roles available to Users and have the data displayed on the custom PHP page. I have looked in to getAllRoles() function…
mudithapb
  • 35
  • 1
  • 8
1 2 3
99
100