Add user managemant page

This commit is contained in:
2024-05-28 05:06:03 +00:00
committed by GitHub
parent 10a8e80762
commit f06dc34c7e
16 changed files with 435 additions and 12 deletions

View File

@@ -21,6 +21,7 @@ class AuthInfo {
bool _isChecking = false;
bool get isChecking => _isChecking;
bool? get isAdmin => _user?.isAdmin;
bool? get isRoot => _user != null ? _user!.id == 0 : null;
bool? get isDocker => _status?.isDocker;
bool? get canReadGallery =>
_user?.permissions.has(UserPermission.readGallery);