Commit cf35fdce authored by Richard Mansfield's avatar Richard Mansfield Committed by Gerrit Code Review

Merge "Non logged in users shouldn't get edit option"

parents fd9571f9 a656bec0
......@@ -877,7 +877,7 @@ class User {
public function can_edit_view($v) {
$owner = $v->get('owner');
if ($owner == $this->get('id')) {
if ($owner > 0 && $owner == $this->get('id')) {
return true;
}
$institution = $v->get('institution');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment