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 ForumsAnnouncementsAnnouncementsEdit icon appearing when it shouldnEdit icon appearing when it shouldn't
Previous
 
Next
New Post
5/6/2009 11:48 PM
 

Hi,

We've been testing the new 4.00.02 release on our staging server and have found an interesting little problem with it. Our production and staging instances are both 4.8.4 and the existing version of announcements is 4.00.01

Straight after we upgrade we've noticed that the pencil icon gets displayed with the item even when the mode is set to view. Even worse is when we logout of the portal, it appears that the edit icon is displayed to non-logged in users. We've tried deleting the test instance and created a new one from our current production environment, but have the same problem. We tried removing the [EDIT] token from the item template, but it gets inserted back next to the [TITLE] (which we expected).

Anyone else seen this behaviour before? Or is it a known bug? Currently searching gemini for it.

Cheers Wayne

 
New Post
5/7/2009 4:44 AM
 

hmm, its not a know issue.. i will investigate


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
5/7/2009 7:19 AM
 

update: funnily enough i cannot reproduce this in dnn 4.7.0 but i can reproduce in 4.8.4 and 4.9.3...


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
5/7/2009 8:33 AM
Accepted Answer 

ok well.. the issue is confirmed. This is what is going on:

  • i am using PortalSecurity.HasNecessaryPermission(Security.SecurityAccessLevel.Edit  ... to check whether the logged in user has edit rights for the items in the module
  • the issue is that HasNecessaryPermission also returns true when the page is in view mode
  • the problem is that when the page is in view mode, the output content is used to fill the cache of the modules that have caching enabled.
  • i was able to fix the issue by adding an extra check that checks on the viewmode of the page

current workaround: disable caching of the module (in module settings)


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
5/7/2009 7:59 PM
 

Thanks Erik for the quick response and suggested work around. Will try the workaround and see how we go.

Cheers Wayne

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsAnnouncementsAnnouncementsEdit icon appearing when it shouldnEdit icon appearing when it shouldn't


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