forked from friendica/friendica-addons
		
	Fix some edge cases
This commit is contained in:
		
					parent
					
						
							
								f039582421
							
						
					
				
			
			
				commit
				
					
						8f5a88aa10
					
				
			
		
					 1 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -249,10 +249,11 @@ function dav_create_server($force_authentication = false, $needs_caldav = true,
 | 
			
		|||
		$server->addPlugin($carddavPlugin);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	$aclPlugin                      = new $GLOBALS["CALDAV_ACL_PLUGIN_CLASS"]();
 | 
			
		||||
	$aclPlugin->defaultUsernamePath = "principals/users";
 | 
			
		||||
	$server->addPlugin($aclPlugin);
 | 
			
		||||
 | 
			
		||||
	if ($GLOBALS["CALDAV_ACL_PLUGIN_CLASS"] != "") {
 | 
			
		||||
		$aclPlugin                      = new $GLOBALS["CALDAV_ACL_PLUGIN_CLASS"]();
 | 
			
		||||
		$aclPlugin->defaultUsernamePath = "principals/users";
 | 
			
		||||
		$server->addPlugin($aclPlugin);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if ($force_authentication) $server->broadcastEvent('beforeMethod', array("GET", "/")); // Make it authenticate
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue