mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-23 05:31:29 +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 LevelVisibility { get; set; }
|
||||||
public PrivacyType ProfileVisibility { get; set; }
|
public PrivacyType ProfileVisibility { get; set; }
|
||||||
public bool CommentsEnabled { get; set; }
|
public bool CommentsEnabled { get; set; }
|
||||||
|
public PermissionLevel PermissionLevel { get; set; }
|
||||||
|
|
||||||
public static ApiUser CreateFromEntity(UserEntity entity) =>
|
public static ApiUser CreateFromEntity(UserEntity entity) =>
|
||||||
new()
|
new()
|
||||||
|
@ -38,5 +39,6 @@ public struct ApiUser
|
||||||
LevelVisibility = entity.LevelVisibility,
|
LevelVisibility = entity.LevelVisibility,
|
||||||
ProfileVisibility = entity.ProfileVisibility,
|
ProfileVisibility = entity.ProfileVisibility,
|
||||||
CommentsEnabled = entity.CommentsEnabled,
|
CommentsEnabled = entity.CommentsEnabled,
|
||||||
|
PermissionLevel = entity.PermissionLevel,
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue