重整多余的UI组件和未定功能的逻辑链路的修正
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class UserEntity extends Equatable {
|
||||
static const adminRoleKey = 'admin';
|
||||
|
||||
final String userId;
|
||||
final String username;
|
||||
final String nickname;
|
||||
@@ -25,6 +27,8 @@ class UserEntity extends Equatable {
|
||||
this.siteId,
|
||||
});
|
||||
|
||||
bool get isAdmin => roleKey == adminRoleKey;
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
userId,
|
||||
|
||||
Reference in New Issue
Block a user