Products

Solutions

Learn More

Partners

Community

Blog

About

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...Building ExtensionsBuilding ExtensionsModulesModulesModule permission (Edit module) not workingModule permission (Edit module) not working
Previous
 
Next
New Post
10/31/2016 8:27 PM
 

I use DNN Platform 8.01 and created page and install a sample customized module in the page. I set the module permission to only view to test user.  but the module content can still be edited and saved by the user.  Even I set the permission of the "Edit module" to deny, the user still can edit the module content.

The page permission also shows the same problem, the permission for "edit" not function.

Great appreciation if anyone knows the reason and solution.  Thanks.

 
New Post
11/1/2016 5:01 AM
 
are you using multiple languages?
please check default roles in portals table,
you may also download https://dnnscript.codeplex.com/releas...
and run it in Host > SQL. You'll need to restart DNN afterwards.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group   European Network of DotNetNuke Professionals

Speed up your DNN Websites with TurboDNN
 
New Post
11/1/2016 1:46 PM
 

Thank you for the reply, Sebastian,

I downloaded the adjustment sql (AdjustDNNPermission742) and run it successfully, and then I restarted the 

DB and website,  but the problem still exists.

I checked the portal table, but it seems there is no change after I run the sql,  and there is still only one record

in this table. it is as below:


Below is how my module was coded:Permission for "View" works fine both in page and module, but "Edit" still not working.

 -- Get the data from my customized DB tables ( all the customized tables are in the same DB as DNN table)

    and display the information in the page;

-- Modify the information;

-- Save the modified information into the customized DB table.

  ( on doing the saving,  I used ajax in the save button click event).

My understanding is as below: 

 if we disable the "Edit Module" in this module permission for a user, then this user 

shouldn't be able to change and save the above information.

Thanks again and looking forwards to your further instruction.

 

 
New Post
11/1/2016 8:09 PM
 
in Roles table, please make sure, "Administrators" role for your website (PortalID = 0) has RoleID = 0, while "Registered Users" role has RoleID = 1.
In your module, you need to check edit permission to restrict access to edit options. See HTML module as an example.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group   European Network of DotNetNuke Professionals

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesModule permission (Edit module) not workingModule permission (Edit module) not working


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.
DNN Launch Webinar
REGISTER NOW
DNN Launch Webinar
REGISTER NOW
DNN Launch Webinar
REGISTER NOW