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 ...Interesting Thing with Permissions Grid Tristate CheckboxesInteresting Thing with Permissions Grid Tristate Checkboxes
Previous
 
Next
New Post
12/3/2015 2:21 PM
 

I'm wondering about some behavior of the .tristate checkboxes in the Permissions Grid.

I was on DNN 7.4.1. I installed Oliver Hine's Enhanced Permissions provider. I tried it out; it didn't handle quite everything I wanted; so I uninstalled it. It should have been uninstalled correctly, through the Host > Extensions > Providers section. The checkbox issue showed up. I tried upgrading the site manually from 7.4.1 to 7.4.2 to see if that would overwrite any files that may have acquired issues. No go.

Here's the thing:

Before all that, the checkboxes worked, as in I click View, View gets checked, I deny View, View and Edit are denied, etc; check Edit, View and Edit get checked, uncheck Edit, both are unchecked, etc. So, I was able to set permissions "properly", notably just the View permission.

Afterwards, clicking either checkbox duplicates the action across both checkboxes in the row. So I could not select just View alone -- it would always auto-select Edit as well.

I asked Oliver about this. He says I uninstalled the provider correctly. He also says the Enhanced Permissions don't touch /js/dnn.permissiontristate.js which handles this auto-checking of the boxes.

I've modified /js/dnn.permissiontristate.js to work correctly again (which also means that file is the sole actor). It looks like it was not working because of a flaw in the logic for the section starting @ line 85:
var $fullControl = $hdn.parent ...
Specifically line 92, because with only Edit and View, View comparing against View will always be equal, so setFullControl will always be true.

The odd thing, now, is if I do a binary comparison of the Javascript file from fresh install files for 7.4.2 with the Javascript file from my original download of 7.4.1. They are the same. It worked before. It didn't work after (until I modified the code). I don't get it. How is that possible?

 
New Post
12/3/2015 2:24 PM
 
Were there changes in the Permission Grid itself (for instance, removal of hidden Inputs somewhere between 7.4.1, uninstalling the Enhanced Permissions, and upgrading to 7.4.2, that would've actually allowed for checking multiple hidden inputs beyond just "View")? I'll have to check on that thought in a bit...
 
New Post
12/5/2015 2:09 PM
 
the differences might be in Permissions table in the database.
Would you mind to run "SELECT * FROM {databaseOwner}[{objectQualifier}Permission] in Host > SQL and report the results here, thank you.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/14/2015 6:04 PM
 

I apologize for the delay in responding. I ran the query and am attaching the results as a PDF (if that works).

Permissions Query Results (PDF)

 
New Post
12/15/2015 1:50 PM
 
there are permissions missing for folders, I'll update my adjustPermission script to fix it.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Interesting Thing with Permissions Grid Tristate CheckboxesInteresting Thing with Permissions Grid Tristate Checkboxes


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