Skip to content

Commit

Permalink
fix: fix carddav url handle (#2054)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Nov 14, 2018
1 parent 18a97d3 commit ce89286
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Models/CardDAV/Backends/MonicaPrincipleBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function findByUri($uri, $principalPrefix)
*/
public function getGroupMemberSet($principal)
{
debug('getGroupMemberSet');
Log::debug(__CLASS__.' getGroupMemberSet', func_get_args());

return [
'principals/'.Auth::user()->email,
Expand All @@ -171,7 +171,7 @@ public function getGroupMemberSet($principal)
*/
public function getGroupMembership($principal)
{
debug('getGroupMembership');
Log::debug(__CLASS__.' getGroupMembership', func_get_args());

return [
'principals/'.Auth::user()->email,
Expand All @@ -189,6 +189,6 @@ public function getGroupMembership($principal)
*/
public function setGroupMemberSet($principal, array $members)
{
dd('setGroupMemberSet');
Log::debug(__CLASS__.' setGroupMemberSet', func_get_args());
}
}
1 change: 1 addition & 0 deletions public/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !carddav/*
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

Expand Down

0 comments on commit ce89286

Please sign in to comment.