mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-19 08:35:18 +00:00
Created invited status for groups.
This commit is contained in:
@ -307,8 +307,9 @@ class GroupsComponent {
|
||||
if($group_visibility_level == GroupInfo::OPEN_GROUP)
|
||||
return GroupInfo::VIEW_ACCESS;
|
||||
|
||||
//Else, all pending membership gives limited access
|
||||
if($membership_level == GroupInfo::PENDING)
|
||||
//Else, all pending and invited membership get limited access
|
||||
if($membership_level == GroupInfo::PENDING ||
|
||||
$membership_level == GroupInfo::INVITED)
|
||||
return GroupInfo::LIMITED_ACCESS;
|
||||
|
||||
//Private groups gives limited access
|
||||
|
Reference in New Issue
Block a user