Products

Solutions

Resources

Partners

Community

About

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 ForumsForumForumForum Enhancement Vote!Forum Enhancement Vote!
Previous
 
Next
New Post
8/5/2006 6:37 AM
 

Well, the vote is down to email and skinning. I have pretty much rewritten the Module Permissions enhancement and tested it in about one night. I checked out how UDT was doing it and it was exactly what I wanted so I took a 'skeleton' of their permissions code and used that to start with.

What this has done is allowed me to:

Remove module action dependancies on Admin perms for normal users. THis means the edit container does not have to load in all cases it normally would not. This, in turn, allows pages to be viewed with all other mods on the page in tact for most usage.

Made coding permission checks extremely simple. THe rules are all baked in the security file so you simply check the lowest common denominator function. (if look for ability to post, look for perms set that says yes. This perm set says yes if the user is a forum admin, global moderator, has mod edit perms, site admin - finally the check of the roles for with this ability being set under mod settings)

While I was in there it allowed me to catch a few minor bugs I saw in some logic (allowing people to reply to a closed thread was a bit off in mod situations) and I changed some of the parent items to make more sense when reading the code. (ie. instead of saying Post.Parent.Parent, this actually became Post.ParentThread.ParentForum). This allowed me to identify some other things neglected such as a person could find a way to post a reply to a forum that was no longer active if they used a direct url entry.

In the end, I added four permission sets for the module to use:

Forum Admin - Allows users to fully administrate forum module but not have total edit rights to the module (ie. module settings)

Forum Global Moderator - this allows global moderator assignment via roles (and module settings) These people can edit any post, move any post, approve any post, delete any post in any forum. (As long as it is not private and they cannot see it)

Start Post - This is basically the equivalent of giving edit rights to registered users. What this means is anyone who is in the roles assigned for this can post a reply or start a new thread. (Again, if they can see it and perms are not overriden at specific private forum level). This will eventually be divided further into Start Thread and Post Reply. I didn't want too much transition in this version to the next and I am affraid of a support nightmare if i do this in one swoop.

While I was in there I started working in the future possibiity of anonymous posting. Right now and in the next version this will still not be possible as everything in Start Post verifies the userid > 0. (The forum admin and global moderator will never allow unauthenticated users to do these roles no matter what!) I am not sure when I will work this in, there is much more to consider yet.

I also exposed the PM system. I have some testing to do here and still have to review the rest of the module because of the perm changes to make sure it is 100% solid. However, I feel it might not take too long for a release. I am also going to focus on the SQL 2k5 usage problems along with other outstanding bugs that are making usage of the module difficult.


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
8/6/2006 4:53 PM
 

Chris,

Way to go knocking the permissions out in a hurry! I always like when refactoring goes quicker then expected. It sure beats the change taking longer then expected!  It's also great to hear anonymous users will someday be allowed based on this. This will broaden the use case and make some of the posters here happy to see this come to play.

Great Job,

Dave

 
New Post
8/6/2006 5:00 PM
 
Thanks Dave. I have reviewed the core role permissions grid usage I put into place and it is working as expected on every page the module has including the Private Messaging. I am now implementing a per forum permissions grid which I am creating. The idea behind this is to get rid of the lookup for authorized and authorized edit used per forum. A single table will be used to control this and as it currently works now it will only place further restrictions beyond what is there now. (meaning if all can view, in a private forum this will only change if authorized view perms are changed at the forum level) The biggest thing to keep in mind w/ this is that anything that is marked as a private forum is not exposed to the core search or the Aggregated Forum view.

Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumForum Enhancement Vote!Forum Enhancement Vote!


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