mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-16 02:01:28 +00:00
Add moderation/permission info to /api/v1/user (#761)
* Add moderation / permission info to /api/v1/user * Consolidate everything into a single PermissionLevel reference
This commit is contained in:
parent
9deff7ce63
commit
613984c69d
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@ public struct ApiUser
|
|||
public PrivacyType LevelVisibility { get; set; }
|
||||
public PrivacyType ProfileVisibility { get; set; }
|
||||
public bool CommentsEnabled { get; set; }
|
||||
public PermissionLevel PermissionLevel { get; set; }
|
||||
|
||||
public static ApiUser CreateFromEntity(UserEntity entity) =>
|
||||
new()
|
||||
|
@ -38,5 +39,6 @@ public struct ApiUser
|
|||
LevelVisibility = entity.LevelVisibility,
|
||||
ProfileVisibility = entity.ProfileVisibility,
|
||||
CommentsEnabled = entity.CommentsEnabled,
|
||||
PermissionLevel = entity.PermissionLevel,
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue