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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryuser canuser can't download picture, how to give access
Previous
 
Next
New Post
4/7/2006 9:26 AM
 
i have gallery module install in my dotnetnuke, how so that user can download picture in my picture gallery. how to giving the access
 
New Post
4/7/2006 4:42 PM
 
This is a know bug and I don't think anyone has found a fix for it yet.  We'll probably have to wait for the next release.

Paul Davis
 
New Post
4/9/2006 2:57 PM
 

Ok I've found the problem.  :)  And I've got a hack to work around it until I fix it correctly.

The problem is that the method PortalSecurity.isInRole is looking for a role name and the Gallery module is passing it the ID of the role name.

The quick fix is this:

Create a role (I'll call it DownloadPhoto) and from the Gallery configuration screen add this role as one of the authorized download roles.

Find the moduleID of the Gallery module.  You can find this in the Modules table on the database. (Select moduleid from dbo.Modules where ModuleTitle = 'Gallery') Change that if your moduletitle is different.

In the ModuleSettings table find the row with your moduleID and SettingName = DownloadRoles.

This will have the ID of the role you just gave download permissions to (in my case it looks like ;3).  Change the number to the name of the role.

Flush your cache as host and then try it out with a user that only has that role.  It should work.

Unfortunatly this will break the configuration screen.  The control that gets populated with the download roles is looking for an id number.  So make sure you have the configuration working the way you want to first.  If you need to get back in to the configuration settings reverse the DB changes.  

 


Paul Davis
 
New Post
4/11/2006 12:17 PM
 
thank for the reply, but i want to ask how to create a new role???
 
New Post
4/12/2006 11:17 AM
 

You create a role as the admin user under the admin menu item security roles.

Then go into the Gallery configuration screen and add that roll to the downloads roll.

Once you've done that if you want it to work follow my previous post.  :)

 

Cheers,


Paul Davis
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryuser canuser can't download picture, how to give access


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