Allow members-restricted posts to be viewable by instance moderators
But add a warning message on top of the post Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -84,6 +84,14 @@ export default class GroupMixin extends Vue {
|
||||
]);
|
||||
}
|
||||
|
||||
get isCurrentActorAGroupMember(): boolean {
|
||||
return this.hasCurrentActorThisRole([
|
||||
MemberRole.MODERATOR,
|
||||
MemberRole.ADMINISTRATOR,
|
||||
MemberRole.MEMBER,
|
||||
]);
|
||||
}
|
||||
|
||||
hasCurrentActorThisRole(givenRole: string | string[]): boolean {
|
||||
const roles = Array.isArray(givenRole) ? givenRole : [givenRole];
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user