roles

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 or something), but there is no menu. (So hypothetically, the site could be administered by...

How to keep RoleProvider from overriding custom roles?

I have an custom role provider that gets the roles a user belongs to from a database. I also have a custom authentication module registered in my web.config's httpModules which sniffs incoming HTTP requests and (if it's an OAuth signed request) sets the HttpContext.Current.User property to impersonate the user, and the IPrincipal that i...

How to configure Roles without an app.config?

Can I configure Roles and Membership programmatically? Without an app.config (or web.config) ? ...

How can I access the meta class of the module my Moose role is being applied to?

I'm using Moose roles to apply some wrapper behaviour around some accessor methods in a class. I want to apply this role to a number of modules, each of which have a different set of attributes whose accessors I want to wrap. Is there a way to access the meta class of the module being applied to, from within the role? i.e. something li...

Changing user roles through a form

I'm trying to create a Rails form that allows an admin user to change the assigned roles of other users. The form I've created registers changes to the user (such as password or login changes), but doesn't register changes to the user's role, which is a separate model. I'm using Acl9 for role-based authentication, which uses a User ...

Set Property Value on Master Page from Content Page

Hello, I tried following the advice posted here: http://stackoverflow.com/questions/1071920/set-property-value-on-master-page-from-content-page. Specifically the last post about creating a class. However, visual studio keeps giving me an error on my default.aspx.cs page when i try to set the value: using System; using System.Collect...

Help with roles in rails

Im trying to use this approach. My app is a cms. I have admins, editors, and subscribers. for a blog with categories... its an experimental project so I cant use wordpress or whatever. Admins should be able to do anything, editors should allow be allowed to create/edit/delete content for the category they belong to and suscribers are ju...

ASP.Net MVC - Showing Model data based on Roles

Hi, 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 appropriate Partial view. Im a newbie to MVC so can someone please advise what the...

Help with storing/accessing user access roles C# Winforms

Hello, firstly I would like to thank you in advance for any assistance provided. I am new to software development and have designed several Client/Server applications over the last 12 months or so, I am currently working on a project that involves a user logging in to gain access to the application and I am looking at the most efficient ...

How can I change the ASP.Net MVC Login Redirect based on role?

I have the following code I've typed into the Account Controller in my MVC project and I am in both the administrator and manager roles. When I log in I get redirected back to my home index instead of being redirected to my AdminApp index. Any ideas where I'm going wrong in my code? [AcceptVerbs(HttpVerbs.Post)] [System.Diagnostic...

ASP.NET location element override behavior

Assume I have the following in my web.config (most of the file omitted for brevity): <configuration> <location path="somefolder/somepage.aspx"> <system.web> <authorization> <allow roles="SomeRole" /> <deny users="*" /> </authorization> </system.web> </location> <system.web> <authorization> ...

Roles.GetRolesForUser calls default role provider only?

I'm using multiple role providers, the standard SQL provider plus a custom one. Inside Global.asax - RoleManager_GetRoles I create a RolePrincipal for users that should use my custom provider with the provider name set to my custom provider, and let other users be handled as normal. This almost works, asp.net allows access to pages pro...

ASP.NET MVC and role caching?

Hello, I am developing an ASP.NET MVC app with custom membership and role providers. My custom role provider uses LinqToEntities to query the user/role mapping table and retrieve if a user is in a role or not. When running on debug, local machine, everything is fine. When deploying on IIS7 however, I have this strange behavior: When I...

Group and acl on Spring Security

Hello, I want to use Spring Security to manage user, group and permissions. I want to use ACL to secure my domain objects but I can't find a way to assign a group to an acl. For example: I've got users and groups. Each group can have the following securities: - manage forums (can be a role like ROLE____FORUM____MANAGER) - edit a speci...

Roles scheme for college course management and grading system

I've got a system that allows classroom instructors and graders to log in and manage classes and grade papers. A user can be both an instructor and a grader, and can be so for particular semesters. Other users, like students, are also bound to this semester scheme. Still others, like administrators, have accounts that don't run by semest...

ASP.NET: Role-based security and page design

I have a page with a couple of grids and a small form with 7 controls. The grids show ancillary data. Overall there are about 320 lines of code-behind that handle various events. I have the requirement that one particular role is only supposed to edit 3 fields out of the 7, whereas all other roles with access to this page can edit all of...

How to design a system to filter requests on roles?

I have requirement to design a WCF Service based system to filter requests on roles in C# Rules User can access X SuperUser can access Y Admin can access Z Database Resource AccessControl X User,SuperUser,Admin Y Admin Z Admin How do I create a system where I can transform these ac...

How do I use the RoleService class in WCF?

Hello, I'm pretty new to WCF, so this might be a very simple question. I'm implementing a service to be accessed from Silverlight. I'm using role-based authentication with my own ASP.NET Role and Membership provider implementations. It seems to be configured correctly - I can use PrincipalPermission attributes on methods. However, I'm...

Drupal 6: How do I allow a specific role to edit only content of a specific type?

On a Drupal 6 site, I have a 'moderator' role, who worka with an 'article' content type. I want the moderators to be able to see the list of published/unpublished articles, and have the option to edit the articles (and change their 'published' status). I do not want, however, for moderators to be able to edit (or see the list of) any oth...

Multiple Authentification methods, or implement role based Authentification?

I have a problem I am trying to solve as smooth as possible, and also keep it as safe and flexible as possible! I have a web app where I have 2 kinds of users; Back end users (trusted users; Admins!), and Customers (Front end users; not trusted in the same way)! They do work on some of the same data in the database, but the Customers ca...