1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-06-20 08:35:17 +00:00

Do one TODO

This commit is contained in:
2020-03-26 17:11:24 +01:00
parent c222c8b054
commit c945c6acda
2 changed files with 2 additions and 5 deletions

View File

@ -398,7 +398,7 @@ export class GroupsHelper {
* @param groupID Target group ID
* @param userID Target user ID
*/
private static async IsLastAdmin(groupID: number, userID: number) : Promise<boolean> {
public static async IsLastAdmin(groupID: number, userID: number) : Promise<boolean> {
return await this.GetMembershipLevel(groupID, userID) == GroupMembershipLevels.ADMINISTRATOR
&& await GroupsHelper.CountMembersAtLevel(groupID, GroupMembershipLevels.ADMINISTRATOR) == 1;
}