Skip to content

A self-hosted media server and file management system

fix: unused admin check looks for a specific username

aminnausin275f39a1e044
diff --git a/app/Models/User.php b/app/Models/User.php
index 053eabcf..c027f4d5 100755
--- a/app/Models/User.php
+++ b/app/Models/User.php
@@ -42,18 +42,11 @@ class User extends Authenticatable {
protected function casts(): array {
return [
'email_verified_at' => 'datetime',
+ 'last_active' => 'datetime',
'password' => 'hashed',
];
}
- public function isAdmin(): bool {
- if ($this->name == 'aminushki') {
- return true;
- }
-
- return false;
- }
-
/**
* Send the password reset notification.
*