|
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):
Or you could write your attribute in such a way so that it dictates the roles allowed.
Which will dictate which pages a role has access to which can be cross referenced to the roles a user is assigned to.
|
|
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..
Users and roles with IIS management tool.
|
|
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.
|
Ask your Facebook Friends
|
How would I query MySQL database to return roles that are still not assigned (like available to him).
With table user_roles:
|user_id|role_id| | 1 | 1 | | 1 | 2 | | 1 | 4 | | 1 | 7 |
How can I query roles table to return role name and id of all the roles...
Started by LukeP on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
AND ur.user_id = 1 )
SELECT * FROM roles WHERE roles.id NOT IN (SELECT distinct role_id FROM user distinct role_id FROM user_roles WHERE NOT user_ID = 1)
Note: This is MUCH faster than the acceptedTry
SELECT * FROM roles....
|
|
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 a database-backed (or just static if....
Have a look at Xml Membership / Role Provider .
Or other xml files.
|
|
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 u.*, IF(r.id_role = 1, "Y", "N") as admin FROM users u LEFT JOIN user_roles') as is_admin from....
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.
|
|
Can I configure Roles and Membership programmatically? Without an app.config (or web.config) ?
Started by Nestor on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It's kind of a hack, but here I configure Roles for Client Application Services:
ClientRoleProvider crp(); crp_config.Add("serviceUri", "www.mydomain.com/Role_JSON_AppService.axd"); crp_config.Add); rpc.SetReadOnly(); //Roles BindingFlags....
|
|
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):
I've seen people changing roles in the lapse of 2 years.
All in all it's a dynamic process.
|
|
Hi,
Is there any way to get a String[] with the roles a user has in the JSP or Servlet?
I know about request.isUserInRole("role1") but I also want to know all the roles of the user.
I searched the servlet source and it seems this is not possible, but ...
Started by AlfaTeK on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Then iterate over it running the isUserInRole and build a list of roles the user is in and then....
(); GenericPrincipal genericPrincipal = (GenericPrincipal) userPrincipal; final String[] roles the possible roles, or hardcode a list.
|
|
What sql query will i need to show the activated server roles in a specific user?
Started by sef on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
THIS SHOULD DO IT:
select 'ServerRole' = spv.name, 'MemberName' = lgn.name, 'MemberSID' = lgn.sid from master.dbo.spt_values spv, master.dbo.sysxlogins lgn where spv.low = 0 and spv.type = 'SRV' and lgn.srvid IS... .
EXEC sp_helpuser 'username' should do.
|