I have a custom module with controls.The goal is to show the Add new item link to a set of users without giving them Edit Module or Edit Page mode.
I have added a new module action of ModuleActionType.AddContent to Add new item.
public ModuleActionCollection ModuleActions
{
get
{
ModuleActionCollection actions = new ModuleActionCollection();
actions.Add(GetNextActionID(), Localization.GetString(
ModuleActionType.AddContent, LocalResourceFile),
ModuleActionType.AddContent, "", "add.gif", EditUrl(), false, DotNetNuke.Security.SecurityAccessLevel.View,true, false);
}
}
If I set SecurityAccessLevel to SecurityAccessLevel.View.,Add new item links get visible to all the Users but if the User who dont have edit page/module rights clicks on this link he get following message.
|
You do not have access to view this module within the portal. |
If an anonymous user clicks on Add new item user get redirected to login window.
If I set SecurityAccessLevel to SecurityAccessLevel.Edit.Only users who have edit module/page can see & Add new item.
What settings I should set to action button so we can allow set of users who don't have edit page/module permissions to add new item?