user-roles

PHP login class

I'm looking for a good PHP login class via MySQL, and I'm not yet completely satisfied with anything I've found. This prior SO question doesn't really address my needs, as I'd prefer to stay away from PEAR and CodeIgniter, and just have a simple and small PHP class to do the job. There's a TalkPHP forum that has several to choose from, ...

Adding custom roles - VB 2008 Winforms

Hello Everyone: I have a winforms (VB 2008) based app that I'm developing and I want to use custom roles for user access. Application Layout: I have a Main form that opens a login form when certain actions occur. The Login form intern uses an authentication class that I've created, to authenticate users and set access rights. On my...

What is the best way to store 10 options in a mysql database?

I am modifying my PHP network's code to have "user roles" like wordpress here is my plan so far 0 = registred non email verified user 1 = registed and verified email 2 = moderator 3-9 = nothing yet 10= admin In my PHP code I will use an array like this that will set what a role number does. $user_role['10'] I was thinking of stori...

Standard Website User Role Names?

What are the standard user role names that a majority of sites could all use? Below is a list of the best roles that I could think of (in order of importance). But I am hoping to find at least ten role names for a user system I am working on. :UPDATED: admin //Manage everything manager //Manage most aspects of the site editor //S...

Drupal: How to implement a SECOND admin with fewer rights than the normal and own theme?

I'm currently trying to realize a second (lower) admin layer in drupal. I have made an extra section via the module of the same name for those users so they can have their own theme etc. I want to give these second or lower admins a menu in their section of the page where they can access certain admin funtions like administer other users...

Help with database strategy for giving roles to users in specific model instances

I have a ruby app running with declarative authorization and I have made the roles: admin ( app admin ) org_admin ( organization administratr ) org_colab ( organization colaborator ) org_visitor ( organization visitor ) a User can has_many Organizations and he can be an admin or a colaborator. I link them using a Affilia...

Working with custom role in VB.NET win application

Hi, I am looking for ways to implement custom user-roles in windows application with vb.net. I got a database table called Roles with Administrator and User entries. User cannot see some of the form data. In ASP.NET MVC we can do like. [Authorize(Roles = "Administrator")] public function GetAccount() as Array End Function If it cou...

What is the recommended way to handle different user roles in a C# application?

I'm going to make a small application for a business that will be used locally for scanning, and storing documents in a database located on the local machine or on a machine located in the same LAN. I could create a table called Users with username and password and according to the usertype ID show a form, or another form. But I'm more ...

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 area. Now, a few days back, I got into a silly problem which is really taking a toll on m...

Best way to store user permissions?

Hey all, Designing a fairly complicated site with a lot of ajax running on a single page. I have reached the point where some user's need to have specific permission to do things and some need to be stopped from the action. I have set up user roles in my database and all is working fine, but I wonder if there is an easier/safer method f...

drupal 6: redirect admin url for custom user role

Hi friends, I need to redirect a url for a user role. URL From: http://www.example.com/admin URL TO: http://www.example.com/admin/content/filter User Role: example-admin So, when a user (example-admin role) login to admin panel with the url example.com/admin , he will not see Access Denied page, but redirected to content/filter as ...

create new roles in sql server 2008

I have created a database system for a cms for a news website. I want to have only 4 roles in my db system : Admin, Author, Editor and Guest ( who only read the web pages). But there are some pre-defined roles in every db system like sys and db_owner and… and they are not removable but I want the only 4 roles I mentioned above. How can I...

How to generate content based on spring-security user rights.

I want to generate some html content based on the user rights of a user who logged in with spring-security. I can't find much about this subject on the internet so far and i'm wondering what would be a good way to implement this. So far i was thinking about making a custom tag, attach it to a controller who links to a class that can gen...

How to assign Page-wise privileges programmatically in asp.net?

I have an asp.net application which has web.config file in every folder of the application. Every folder has many aspx pages in it.I need to assign/deny privileges through coding for every individual pages of folders.The privileges is role based privileges.so some roles will have privileges to only some pages in each folder. Please help ...

User types / role - developers

You have regular user's that use your website/services, they can login to mainsite1, then you have developers, that can not login to mainsite1, but can login to developercenter1. 1) Do you store every type of users into 1 large USER table then assign different roles? or 2) Do you create a completely separate table just for develope...