mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-11 22:19:47 -06:00
fix: user hidden being overridden by base model
This commit is contained in:
@@ -54,6 +54,7 @@ class User extends Authenticatable
|
||||
protected $casts = [
|
||||
'last_login' => 'datetime',
|
||||
'last_action' => 'datetime',
|
||||
'hidden' => 'boolean',
|
||||
'can_comment' => 'boolean',
|
||||
'can_download' => 'boolean',
|
||||
'can_request' => 'boolean',
|
||||
@@ -673,7 +674,7 @@ class User extends Authenticatable
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($target->hidden == 1) {
|
||||
if ($target->getAttribute('hidden')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user