Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Skip the locks for super admin only in server debug mode, otherwise D…
…uoSecurity can be skipped.
  • Loading branch information
cdujeu committed Feb 5, 2015
1 parent 54b0887 commit 2cdf18c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/core.conf/class.AbstractAjxpUser.php
Expand Up @@ -223,7 +223,7 @@ public function removeLock()

public function getLock()
{
if($this->isAdmin() && $this->getGroupPath() == "/") return false;
if(AJXP_SERVER_DEBUG && $this->isAdmin() && $this->getGroupPath() == "/") return false;
if (!empty($this->rights["ajxp.lock"])) {
return $this->rights["ajxp.lock"];
}
Expand Down

0 comments on commit 2cdf18c

Please sign in to comment.