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

Signed out user can get advanced information about groups

This commit is contained in:
2019-12-25 15:37:09 +01:00
parent 7b36e092b1
commit 1dba026fe6
4 changed files with 15 additions and 3 deletions

View File

@ -204,6 +204,10 @@ export class GroupsHelper {
* @returns Membership info / null if none found
*/
public static async GetMembershipInfo(groupID: number, userID: number): Promise<GroupMember> {
if(userID == 0)
return null;
const data = await DatabaseHelper.QueryRow({
table: GROUPS_MEMBERS_TABLE,
where: {