multi role based permission
Last Post 01/08/2010 10:34 AM by Joseph Craig. 3 Replies.
Author Messages
Kamalesh
Nuker
Nuker
Posts:11


--
01/07/2010 8:55 AM  
Hi,

I wanted to give view permission to page only if the user belongs to two roles ("role1" and "role2"). If the user belongs to only one of these roles, he/she should not be able to view the page.

Is there anyway I can acheive this?

Thanks.
Joseph Craig
DNN MVP
Posts:11667


--
01/07/2010 2:25 PM  
That's not a functionality that's part of the standard DotNetNuke installation. But ... permissions are now handled by a "provider," so it would be possible to add something like that with a modified permissions provider.

Joe Craig, Patapsco Research Group
Complete DNN Support
Kamalesh
Nuker
Nuker
Posts:11


--
01/08/2010 10:30 AM  
Thanks Joseph.

I search for provider but couldnt find the one which will do what I was looking for. Can you help?

Thanks,
Kamalesh
Joseph Craig
DNN MVP
Posts:11667


--
01/08/2010 10:34 AM  
There is an example of an enhanced permissions provider for DotNetNuke here.  This will probably make a good study tool so that you can see what you will be facing.  I haven't looked at it, but Oliver Hine is a well-known and respected member of the DotNetNuke community, so I would put some degree of trust in the work.  Perhaps you can extend it, or use it as the basis for your own extension.

Joe Craig, Patapsco Research Group
Complete DNN Support


---