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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Bringing File Manager to any rolesBringing File Manager to any roles
Previous
 
Next
New Post
11/24/2008 4:28 PM
 

Saran wrote
Hi Mamlin, I followed each and every step you 've specified in the blog. But still I'm gettting the same message:

"Either you are not currently logged in, or you do not have access to this content."

Still no luck! Am i missing something?  Thanks, Saran

Saran-
If you're not already doing so, I'd recommend trying your proof-of-concept on a DNN instance with a single portal since this means you'll only have one FILEMANAGER module to worry with.

Here are a few things to double-check (assumes you've created a new user security role called 'FileAdmin'):

  1. In MODULESETTINGS, make an entry for every FILEMANAGER module ID with SETTINGNAME = 'uploadroles' and SETTINGVALUE ='FileAdmin'.  It's safe to do this for every instance of FILEMANAGER since your users will still only be able to access and use FILEMANAGER on portals you've added the 'FileAdmin' role to.

    Also:  You should be able to use either the actual role name or the ROLEID integer value.  If you're using the name, use 'FileAdmin' for the SETTINGVALUE.  If you're using the ROLEID integer value, try adding a semicolon before and after the value.  Example:  If your 'FileAdmin' ROLEID is 12, insert ';12;' instead of '12' as your SETTINGVALUE.
     
  2. For your target FILEMANAGER module, make sure you have given "EDIT MODULE" rights to the "FileAdmin" role.
     
  3. For your target FILEMANAGER module, make sure you have "VIEW FOLDER" and "WRITE TO FOLDER" options checked for the 'FileAdmin' role for the "PORTAL ROOT" folder.  To insure this is set for "PORTAL ROOT", first select "Portal Root" under the  FILEMANAGER's "Folders" area, then check the "WRITE TO FOLDER" option for 'FileAdmin' under the "Folder Security Settings / Permissions" section and then click "UPDATE" to save the settings.
     
  4. Finally, when testing the upload function make sure the account you're logged in with has the 'FileAdmin' role.

There's not much else I can think of to tell you to check -- it's pretty straightforward once you know about adding the 'uploadroles' entry in MODULESETTINGS.  Try things out and reply with your results.

-mamlin


esmamlin atxgeek.me
 
New Post
11/24/2008 4:42 PM
 

I just want to note that since the system was NOT designed for this, please be sure to take security into consideration before putting this "solution" into a production environment.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
11/24/2008 5:34 PM
 

Thanks Mamlin.

The issue was i didnt insert a record for all the File Manager modules in ModuleSettings table. I had as many as 7 portals.

I inserted a setting record for each file manager module in different portals and that fixed the issue.

Now, it works like a charm!!!! Thank you sooo much!

But, I have one small issue.. hope you might have noticed it!

When you click the File Manager tab, the control panel in the top is being displayed (which allows user to switch to View, Edit, Design mode). How can i hide control panel from displaying when any one from FileAdmin group clicks on File Manager tab. But the control panel should be visible if any one from Administrator role group clicks on File Manager Tab...

Let me know if you able to find the solution.

Thanks a lot, mamlin for your help!

Regards,

Saran

 
New Post
11/24/2008 6:43 PM
 

Mitch Sellers wrote
I just want to note that since the system was NOT designed for this, please be sure to take security into consideration before putting this "solution" into a production environment.

Thanks, Mitch -- that's a great point to highlight.  My intial thread reply began by mentioning that this was not a core feature (I even called it a "trick"), but I failed to sound a cautionary note regarding potential security concerns.

We've used this method on a number of sites to expose PAGES and FILE MANAGER without granting full ADMIN access.  However, we have been very careful with who we grant rights to -- only people who have been adequately trained in managing DNN content and understand the full impact of deleting a file or web page under DNN (no more fileid or pageid associations).

As for the "not designed for this" assertion, I have to make a small point of distinction (based solely on my own opinion):  I'd agree that you would say the admin modules are "not intended for this", but....   By their inherent design (leveraging the same design as "regular" modules), the admin modules support assignable security rights, assignable tab locations and the same dynamically-generated default "Module Settings" UI that "regular" modules enjoy.  It is the very design and feature set of the DNN framework, pages and modules that the "trick" relies on to assign additional security roles to ADMIN modules and expose them outside of the ADMIN tab area.  So, I fully agree that the intention of the admin modules is not for sharing/moving, but the core DNN design does, in fact, fully support both the sharing of rights and assignment of tab locations for ADMIN modules (i.e., these features work "by design").
 

On a separate note, it's way-cool that Mitch took a few moments to stop and post a helpful response as he's busy writing an entire book on the subject (DNN module programming):

Everyone go check out the pre-order page for Mitch's upcoming  
Wrox book "Professional DotNetNuke Module Programming". 

I've already pre-ordered my copy (really).  Congrats, Mitch!

-mamlin


esmamlin atxgeek.me
 
New Post
11/25/2008 2:14 PM
 

Hi Mamlin,

 

The trick works great!! Did you notice the control panel being displayed at the top when a normal user clicks on File Manager tab??

(which allows user to switch to View, Edit, Design mode). How can i hide control panel from displaying when any one from FileAdmin group clicks on File Manager tab. But the control panel should be visible if any one from Administrator role group clicks on File Manager Tab...

Is that doable, kindly let me know.. Thanks a lotttt!!

 

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Bringing File Manager to any rolesBringing File Manager to any roles


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