← Back to team overview

mahara-contributors team mailing list archive

[Bug 778240] Re: Logged out users get shown edit this page option

 

This is because the LiveUser object has id=0, and the can_edit_view
function checks the owner of the view against the id (both 0)

Fix is to only check view owner against id if view owner is >0 (ie not
site page, the institution check handles that

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/778240

Title:
  Logged out users get shown edit this page option

Status in Mahara ePortfolio:
  In Progress

Bug description:
  When a logged out user visits a public site page, they get an edit this page option
  When they visit a public page that was made by a user (ie not a site page), then they do NOT get the edit option

  This happens with and without microheaders

  I would suggest not showing the edit option for any public user.

  Cheers,

  Hugh


References