Add canCreateChannel to getUserPolicies return value
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
parent
d4c2d840d7
commit
52df703cd2
|
|
@ -412,6 +412,7 @@ export class RoleService implements OnApplicationShutdown, OnModuleInit {
|
||||||
canSearchUsers: calc('canSearchUsers', vs => vs.some(v => v === true)),
|
canSearchUsers: calc('canSearchUsers', vs => vs.some(v => v === true)),
|
||||||
canUseTranslator: calc('canUseTranslator', vs => vs.some(v => v === true)),
|
canUseTranslator: calc('canUseTranslator', vs => vs.some(v => v === true)),
|
||||||
canHideAds: calc('canHideAds', vs => vs.some(v => v === true)),
|
canHideAds: calc('canHideAds', vs => vs.some(v => v === true)),
|
||||||
|
canCreateChannel: calc('canCreateChannel', vs => vs.some(v => v === true)),
|
||||||
driveCapacityMb: calc('driveCapacityMb', vs => Math.max(...vs)),
|
driveCapacityMb: calc('driveCapacityMb', vs => Math.max(...vs)),
|
||||||
maxFileSizeMb: calc('maxFileSizeMb', vs => Math.max(...vs)),
|
maxFileSizeMb: calc('maxFileSizeMb', vs => Math.max(...vs)),
|
||||||
alwaysMarkNsfw: calc('alwaysMarkNsfw', vs => vs.some(v => v === true)),
|
alwaysMarkNsfw: calc('alwaysMarkNsfw', vs => vs.some(v => v === true)),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue