diff options
| author | Felix Pahlow <felix.pahlow@itz.uni-halle.de> | 2023-07-15 17:39:27 +0200 |
|---|---|---|
| committer | Felix Pahlow <felix.pahlow@itz.uni-halle.de> | 2023-07-15 17:39:27 +0200 |
| commit | 095694c3bc0dfbf453119fe9d6a559f1caf2c1a8 (patch) | |
| tree | 0e0dacea073b2e6258fdeee9fe535545a16e7d26 /lib/models/User.class.php | |
| parent | 3dbf5956b10dc6a3a00e945b04530894c0909253 (diff) | |
add unlock log action, closes #2865biest-2865-2
Diffstat (limited to 'lib/models/User.class.php')
| -rw-r--r-- | lib/models/User.class.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/models/User.class.php b/lib/models/User.class.php index 47ad6f6..5578d43 100644 --- a/lib/models/User.class.php +++ b/lib/models/User.class.php @@ -240,6 +240,10 @@ class User extends AuthUserMd5 implements Range, PrivacyObject $this->lock_comment ) ); + } else if ($this->isFieldDirty('locked') && $this->isFieldDirty('lock_comment') && (int)$this->locked === 0) { + StudipLog::log('USER_UNLOCK', + $this->user_id + ); } } } |
