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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Module Edit control permission?Module Edit control permission?
Previous
 
Next
New Post
7/23/2014 7:28 AM
 

Hi @ all,

 I'm working on a module for uploading files. To upload files, you have to use the edit control.
My problem is: How do I access the edit control without granting "SecurityAccessLevel.Edit"?

I tried just to call the url for the control with dnnModal but its just closing itself when I do this without editing permissions for the page or at least for the module

 I also tried to create a new user control and copied the code from the edit control to the new one.
In the .dnn - file I set this option for the control <controlType>Edit</controlType>, then the same problem from the edit-module came up. I changed the controlType to view, then the content appeared but it was no more possible to do postbacks to the server (without changing the code except from controlType in .dnn-file)

 Anyone knows how to solve this problem?

Greeting Tim

 
New Post
7/30/2014 7:55 AM
 
you cannot access an edit control without SecurityAccessLevel.Edit - that would be a violation of security policy. However you dont have to use an edit control, that's just a convention as the user is changing data (and so should usually be locked down to privileged users) - in general all uploads verify file and folder permissions to see if the user has access (note; some dnn controls may have hard-coded checks for edit or/and admin permissions built in, this may be what youre seeing but you didnt specify the control). If you want to see an example of a control that can be used by any user, check out the user profile page where you can edit the profile and upload images (which go into the user's "user" folder)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Module Edit control permission?Module Edit control permission?


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