Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0 Allocate user rights to the "Edit" screen of a module? Allocate user rights to the "Edit" screen of a module?
Previous
 
Next
New Post
1/10/2007 2:16 PM
 

Hi there,

What do I have to do to allocate user rights to the "Edit" screen of a module?
In doing this I don't want to make use of the existing DNN user/role/rights administration!

When a user logs in, the menu in the module automatically displays the "Edit" button (via modification of the ModuleActions property) . So far so good. But if he clicks on the button in order to reach the "Edit" screen where he can modify the module contents, a message appears instead indicating that the user doesn't have the necessary
authority to access the "Edit" screen:

"You do not have access to view this module within the portal."

Anybody have any idea how I can solve this problem?

Best regards

Elke

 
New Post
1/10/2007 2:53 PM
 

Hi Elke,

you should set the right permisson inside moduleaction so that the "edit" command only appears for peolpe with the right permission. See this example:

Public ReadOnly Property ModuleActions() As Entities.Modules.Actions.ModuleActionCollection _
                                        Implements Entities.Modules.IActionable.ModuleActions
    Get
        Dim Actions As New Entities.Modules.Actions.ModuleActionCollection
        Actions.Add(GetNextActionID, _
                    Localization.GetString(Entities.Modules.Actions.ModuleActionType.ContentOptions, LocalResourceFile), _
                    Entities.Modules.Actions.ModuleActionType.ContentOptions, "", "", _
                    EditUrl("Manage"), False, SecurityAccessLevel.Edit, True, False)
        Actions.Add(GetNextActionID, _
                    Localization.GetString(Entities.Modules.Actions.ModuleActionType.AddContent, LocalResourceFile), _
                    Entities.Modules.Actions.ModuleActionType.AddContent, "", "", _
                    EditUrl(), False, SecurityAccessLevel.Edit, True, False)
        Return Actions
    End Get
End Property
 
New Post
1/10/2007 4:58 PM
 

That's it! Great!
Thank you very very much, Stefan!

Best regards!

Elke

 
New Post
1/12/2007 7:26 PM
 

I erred!
Sorry, there is still the message

"You do not have access to view this module within the portal."

when a user without the right permission tries to access the page.

How can I programmatically assign permissions to a user in order that he can access the "Edit" control of a module?

Thanks!!!

Elke

 
New Post
1/13/2007 9:15 AM
 
mediaANT wrote

How can I programmatically assign permissions to a user in order that he can access the "Edit" control of a module?

While you could give a Role Edit rights and then place users in that role, I doubt that you would want to do that simply to give them the ability to access a page.

It sounds like what you want to do is simply allow them to view the module. For that see this tutorial:

NavigateURL: How to make a link (VB &C#)



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0 Allocate user rights to the "Edit" screen of a module? Allocate user rights to the "Edit" screen of a module?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out