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

Commit 2cdf18c

Browse files
committed
Skip the locks for super admin only in server debug mode, otherwise DuoSecurity can be skipped.
1 parent 54b0887 commit 2cdf18c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/core.conf/class.AbstractAjxpUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public function removeLock()
223223

224224
public function getLock()
225225
{
226-
if($this->isAdmin() && $this->getGroupPath() == "/") return false;
226+
if(AJXP_SERVER_DEBUG && $this->isAdmin() && $this->getGroupPath() == "/") return false;
227227
if (!empty($this->rights["ajxp.lock"])) {
228228
return $this->rights["ajxp.lock"];
229229
}

0 commit comments

Comments
 (0)