role

get role of user in a string variable

is there a way i can get the role in a string variable using the below commands.... System.Security.Principal.WindowsIdentity wi = System.Security.Principal.WindowsIdentity.GetCurrent(); System.Security.Principal.WindowsPrincipal wp = new System.Security.Principal.WindowsPrincipal(wi); i need this for FormsAuthenticationTicket au...

Why doesn't Moose role application with method modifiers work in my code?

I have a Role and several classes that mix-in the role. The Role class loads all of the implementing classes so that anything that imports Blah can use them without typing a lot of 'use' lines. package Blah; use Moose::Role; use Blah::A; use Blah::B; (etc...) requires '...'; requires 'foo'; around 'foo' => sub { ... } A typical Blah...

[Drupal] How do I give a specific user editing rights to a specific node?

How do I give a specific user editing rights to a specific node? I have a user role named "Student". Multiple users have that role, only a few of them can edit a node. How can I realise this? ...

role based access

hi, i am using asp.net with c# .I have 5 roles such as manager,super user, team leader etc .Depending on the role the user sees the data as restricted to him ,only super user can manipulate that data etc.I am using forms authentication.Can anyone provide the code or any form of help is appriciated. Please help ...

Assigning Group's Permission to Document libraries

Here is the scenario.. ===== scanario 1 ===== 1. Document Library "Gatorate Classic" 2. I have four groups. Group Alpha - Role - Read Group Beta - Role - Edit Group Epselon - Role - Edit Group Gamma - Role - Edit ===== scanario 2 ===== 1. Document Library "Gatorate G2" 2. I have four groups. Group Alpha - Role - Edit ...

ASP.NET custom role management.

Hi All There is Role Management feature in ASP.NET It works on local development machine. For our project we need customers admin to be able to create new users and manage their roles. So, basically same what aspnet_regsql.exe does. Question is Should we develop our own pages and forms or use some ready made tool? Thanks! ...

Spring Security - is Role and ACL security overkill?

I have a 3 tier application that requires security authorizations be placed on various domain objects. Whether I use Spring's ACL implementation or roll my own, it seems to me that ACL based security can only be used to authorize (service) methods and cannot be used to authorize URL or web service invocations. I think this because ho...

How can I grant datareader to a sql role?

Is it possible to grant the datareader privileges to a SQL Server Database Role rather than a User? ...

Custom Redirection if Roles don't match

I have an Action result [Authorize(Roles = "Administrator,Paidmember")] public ActionResult ListPhotosbyModel(int? id) { } If the user once he is logged in is not in one of the roles he redirected to login screen but I want them redirected to a payment page where upon successful completion the user is added to paidmember. How do I...

Generating scripts for database role membership in SQL Server 2005

I have a database with a lot of users in it. Those users belong to different built-in roles in the DB (eg db_ddladmin). I want to generate a script that creates those same users with the same role assignments to use in a different database. SQL Management Studio seems to only generate sp_addrolemember calls for user-defined roles, not ...

problem with Enterprise Portal and Role Center installation

Hi, I have installed the following: .Net Framework 3.5, windows installer 3.1, IIS 7.0, ASP .NET, Microsoft DynamicsAX .NET business connector, AMO, AOS and Microsoft office share point server 2007 when trying to install Enterprise Portal and Role Center on office Sharepoint server I got a warning when the installation finished. W...

loweredrolename in aspnet_users table (SQL Server 2005)

For my existing data, both RoleName and LoweredRoleName are same, but some are lower case and some are in same case too. Anyone knows what is the use of column LoweredRoleName in aspnet_users table? ...

Need help with the design of the Employee and Manager relationship

I am currently working on a project which has Employee, Manager entities. At the very beginning, I took for granted that a manager must be an employee in the company, so they are the same person who have the same EmployeeID in payroll system. Based on this assumption, I let the Manager class extends Employee class. Later, my client tol...

Not Able to Set Class' Attributes in Role

Hello all, First off, I'm not really sure how much information is necessary to include because I'm having a really hard time tracing the origin of this problem. I have a Moose role with a subroutine that (along with a few other things) tries to set the attributes for a class like this: $genre = Movie::Genre->new({ genreName => 'Dr...

Location access in ASP.NET

I have admin area of my site: http://www.mysite.com/webadmin and I want to protect it by role (I'm using ASP.NET forms auth), so that only a user with the role "admin" could access it. In web.config I added this entry: <location path="WebAdmin"> <system.web> <authorization> <deny users="*"/> <allow r...

Custom Role Provider not working

Hi there I've set up a very basic custom role provider from my ASP.net application. This doesnt seem to be working as the "GetRolesForUser" method is never being called when a page is requested that should be protected. Class: public class SimpleRoleProvider : RoleProvider { public override string[] GetRolesForUser(string userna...

Are there any examples of sites that use the role attribute in HTML5/XHTML?

I've been looking at the use of the role attribute for HTML5/XHTML in the W3C: http://www.w3.org/TR/wai-aria/roles and was wondering if there are any sites that use this or examples of how/when to use the role attribute. I understand how it works, but would like to see how other people have used in their sites/projects. Also, am i corr...

Moose::Role - easy way to augment application of the role?

I have a Moose::Role that I would like to call some extra subs on the class when that role is applied to the class. Is there an easy way to modify what happens when the role is applied, without having to dig too much into Moose::Meta::Role type coding? Ideally, I'd just like to after 'apply' => ... to add the extra stuff. Edit: I'm s...