HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...DNN Role Groups and Roles (which one should I use)?DNN Role Groups and Roles (which one should I use)?
Previous
 
Next
New Post
11/25/2008 7:18 PM
 

Is there a module that helps with the utilization of role groups? I do not need a lot of control. But, it would be nice to be able to control modules by role groups instead of selecting multiple roles to access the same module feature.

For example : Talent = models, dancers, DJs, Actors, etc. . I may have as many as 20-30 talent types! This could make module implimentation very tedious. If I could just select "Talent" and it represents all 30...well you can see how handy a module or feature that would be.

 
New Post
11/26/2008 9:02 AM
 

Rod Weir wrote
Hey Mamlin,  just wanted to say that this is probably the most complete and well thought out answer to a question that I've seen to an internet discussion post in years......and I read a lot of discussion forums.

Well done and please keep sharing your knowledge of DNN with us.

Best regards, Rod

Oh, hey -- I had to QUOTE that just to see it twice on the same page. :) 

Thanks, Rod!  I'm more often accused of being too complete (as in TMI = boring).


coolvibe-
I think the core would have to be updated to administer permissions the way you mentioned (which I think would be a nice improvement) from within a module's standard SETTINGS->PERMISSIONS interface.  A third-party module could remotely admin permissions this way but I think most admins would want to be able to do it directly from each module's SETTINGS interface.

Sounds like a good candidtate to add to the "Enhancement" request list:  http://support.dotnetnuke.com/project/Project.aspx?PROJID=23

-mamlin

 

 
New Post
7/30/2009 8:56 AM
 

About his, in a module that i'm doing I need to give acess only to user in a certain Rolegroup.
how can I do that?

The button must be hide for other users, but the module need to be show anyway

 
New Post
7/30/2009 2:17 PM
 

Rafael Cardoso wrote
About his, in a module that i'm doing I need to give acess only to user in a certain Rolegroup.
how can I do that?

The button must be hide for other users, but the module need to be show anyway

You'll either need to use your own custom SQL query or else use a couple of existing DNN queries.  One set of existing queries that would work is "GetRolesByGroup" plus "GetRolesByUser".  If any role appears in both sets of results then the specified user is a member of the specified group.
 
A custom query would probably be more efficient as it could be performed with a single call to the DB.  You'd want to write a "IsUserInGroup" stored procedure similar to the existing "IsUserInRole" stored procedure.
 
Hope that helps-
-mamlin
 
 

 
New Post
7/31/2009 2:20 AM
 

I never had used store procedure, because I don't have much experience, neither I never need it, because I used almost time sql code in the aspx.cs file.
but by the names I think that the option "IsUserInGroup" is the right choise, but how can I make it?

 
Previous
 
Next
HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...DNN Role Groups and Roles (which one should I use)?DNN Role Groups and Roles (which one should I use)?


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me
Have Someone Contact Me
DotNetNuke Store

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke DNN Hosting
Exact Target Exec Alert
r2integrated

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.