mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Created invited status for groups.
This commit is contained in:
		@@ -14,6 +14,7 @@ class GroupsController {
 | 
				
			|||||||
		GroupInfo::ADMINISTRATOR => "administrator",
 | 
							GroupInfo::ADMINISTRATOR => "administrator",
 | 
				
			||||||
		GroupInfo::MODERATOR => "moderator",
 | 
							GroupInfo::MODERATOR => "moderator",
 | 
				
			||||||
		GroupInfo::MEMBER => "member",
 | 
							GroupInfo::MEMBER => "member",
 | 
				
			||||||
 | 
							GroupInfo::INVITED => "invited",
 | 
				
			||||||
		GroupInfo::PENDING => "pending",
 | 
							GroupInfo::PENDING => "pending",
 | 
				
			||||||
		GroupInfo::VISITOR => "visitor"
 | 
							GroupInfo::VISITOR => "visitor"
 | 
				
			||||||
	);
 | 
						);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -307,8 +307,9 @@ class GroupsComponent {
 | 
				
			|||||||
        if($group_visibility_level == GroupInfo::OPEN_GROUP)
 | 
					        if($group_visibility_level == GroupInfo::OPEN_GROUP)
 | 
				
			||||||
            return GroupInfo::VIEW_ACCESS;
 | 
					            return GroupInfo::VIEW_ACCESS;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        //Else, all pending membership gives limited access
 | 
					        //Else, all pending and invited membership get limited access
 | 
				
			||||||
        if($membership_level == GroupInfo::PENDING)
 | 
					        if($membership_level == GroupInfo::PENDING ||
 | 
				
			||||||
 | 
					            $membership_level == GroupInfo::INVITED)
 | 
				
			||||||
            return GroupInfo::LIMITED_ACCESS;
 | 
					            return GroupInfo::LIMITED_ACCESS;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        //Private groups gives limited access
 | 
					        //Private groups gives limited access
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -34,8 +34,9 @@ class GroupInfo extends BaseUniqueObject {
 | 
				
			|||||||
	const ADMINISTRATOR = 0;
 | 
						const ADMINISTRATOR = 0;
 | 
				
			||||||
	const MODERATOR = 1;
 | 
						const MODERATOR = 1;
 | 
				
			||||||
	const MEMBER = 2;
 | 
						const MEMBER = 2;
 | 
				
			||||||
	const PENDING = 3;
 | 
						const INVITED = 3;
 | 
				
			||||||
	const VISITOR = 4;
 | 
						const PENDING = 4;
 | 
				
			||||||
 | 
						const VISITOR = 5;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    //Get and set the name of group
 | 
					    //Get and set the name of group
 | 
				
			||||||
    public function set_name(string $name){
 | 
					    public function set_name(string $name){
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user