|
I need to automatically apply a role, Role X, to all Drupal users that have been granted a separate role, Role Y. In other words, I wish for Role X to be a subset of Role Y. How can I do this?
Started by Reynolds on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
It lets role.....
For a bootstrapping/one time operation, take a look at user_multiple_role_edit() .
If present, add role X if not already and/or changed.
Action, you'd check for role Y in the $account->roles array.
|
|
What is the difference between DBO role versus the DBA role?
Started by shamp on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
As squillman says, DBA isn't the name....
High-level: DBO is the owner.
There is no builtin role called "dba" in SQL.
A dba is not a system role, it's the title of the person who administers your database server ( D ata B ase A dministrator).
|
|
Hi,
I'm currently trying out the JDBCRealm in Glasshfish v3: I have 2 roles USER and ADMIN.
I have a LoginServlet that redirects to a url (say /admin or /user) based on the request.isUserInRole("ADMIN") method.
Problem is when a ADMIN is logged in it ...
Started by Michael Bavin on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Glassfish will ....
Fixed it by making sure the Realm setting "Assign Groups" is empty .
How about your user mappings? It look like that the same username is mapped on both the user and admin roles.
Your security mappings look fine at first glance.
|
Ask your Facebook Friends
|
Is there a way to query users table like this:
| id | username | | 1 | user1 | | 2 | user2 | | 3 | user3 |
and user_roles table:
| id_user | id_role | | 1 | 1 | | 1 | 2 | | 1 | 3 | | 2 | 2 | | 3 | 1 |
assuming that role with id = 1 is an admin role, to...
Started by LukeP on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
SELECT....
SELECT u.*, r.id_role FROM users u LEFT JOIN user_roles r ON u.id=r.id_user
You can add WHERE r.id_role=1 to get just_role is 1 or not.
Well, you can join like this, which will give you the id_role in the result.
|
|
I have a super simple ASP.NET MVC application that uses RpxNow (OpenID) to allow users to login. I now want to let users edit their own account and provide administrator access to edit anyone's account.
I have two separate "Edit Account" views:
~/account...
Started by Junto on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
This uses Membership / Role still really revolves around IPrincipals, the Role/Membership providers are just window dressing.
Have a look at Xml Membership / Role Provider .
Or other xml files.
|
|
Hello,
In my current project, we need to authenticate users of an ASP.NET application against Active Directory. I think it can be achieved using the membership provider without too much problems. but we need also to manage user roles that will be kept...
Started by davandries on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Yes! The ASP.NET role provider is designed to work exactly in that case - the particulars of the authentication provider are irrelevant to the role provider, and it will store the bare essential in the role database and matched....
|
|
Hi,
I am working on a ASP.NET web application. I have this well known issue: each user can belong to one or several roles (admin, public users), and each role can have one or several permissions (can edit, can delete, can upload, etc.) and vice versa....
Started by jon on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Can you not just get away with having your roles BE the permissions? For example, a role for people who can edit, a role for people who can add, a role for people that can never considered....
And role/group model a bit.
|
|
Hi!
I'm working on this project that an admin user can create some User's Groups that will be working as the project roles.
So, the admin will create a User Group named "SuperAdmin" and will select in a dropdownlist the users that will be part of this...
Started by AndreMiranda on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Which will dictate which pages a role has access to which can be cross referenced to the roles a user.
|
|
Hallo, i have created a web site with Asp.Net by using Sql Membership Provider, sitemap and security trimming enabled. Based on these i have set web.config files into directories for allowing or not the users access according to their roles.
After some...
Answer Snippets (Read the full thread at stackoverflow):
This way you can avoid any typing error..
You can add users and roles with IIS management tool.
If you've done anything "by hand", you'd better add your code so people can see.. .
|
|
What would be the best way to bring people back to "their first love", i.e. programming, from other roles, e.g. sales, management, support, testing, etc.
This may become an issue given the current state of the economy.
I'm not talker about the CEO who...
Started by Rob Wells on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Just as I would never judge someone by how long they've been in the industry, I also wouldn't judge on how long they've been out of it - if they can be a useful member of the team... .
I'm afraid the unhelpful answer is that it depends entirely on the person .
|