I'm new in dotnetnuke and i have a slider module that has two part,first for it's content control panel which must be editable by site admins and second is the module setting panel itself that must be editable only for host or administrator users,i wonder how can i grant this sort of permission for different users?
Asked
Active
Viewed 56 times
1 Answers
0
You would do this using the ModuleActions call on your VIEW control
public ModuleActionCollection ModuleActions
{
get
{
var actions = new ModuleActionCollection
{
{
GetNextActionID(), Localization.GetString("EditModule", LocalResourceFile), "", "", "",
EditUrl(), false, SecurityAccessLevel.Edit, true, false
}
};
return actions;
}
}
The SecurityAccessLevel.Edit there, you have
View, Edit, Admin, Host, ViewPermissions available as options.
Sounds like you want to use the EDIT and HOST options for what you are describing.

Chris Hammond
- 8,873
- 1
- 26
- 34
-
thank you chris,but where can i found the SecurityAccessLevel.Edit? – Mousa Khodaei Jun 02 '15 at 07:53
-
This would be in your ModuleActions on the View Control of your module, that implements IActionable – Chris Hammond Jun 02 '15 at 14:04
-
thank you chris,It's my pleasure to get answer of my question from your side. can you please get me some glance link in dnn module development tutorial in c#? – Mousa Khodaei Jun 06 '15 at 19:49