File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,12 @@ public function getLocalOCMProvider(bool $fullDetails = true): ICapabilityAwareO
151151 $ provider ->setApiVersion (self ::API_VERSION );
152152 $ provider ->setEndPoint (substr ($ url , 0 , $ pos ));
153153 $ provider ->setCapabilities (['/invite-accepted ' , '/notifications ' , '/shares ' ]);
154+ // The inviteAcceptDialog is available from the contacts app, if this config value is set
155+ $ ocmInvitesEnabled = $ this ->appConfig ->getValueBool ('contacts ' , 'ocm_invites_enabled ' );
156+ if ($ ocmInvitesEnabled ) {
157+ $ inviteAcceptDialog = $ this ->urlGenerator ->getAbsoluteURL ('/apps/contacts/ocm/invite-accept-dialog ' );
158+ $ provider ->setInviteAcceptDialog ($ inviteAcceptDialog );
159+ }
154160
155161 $ resource = $ provider ->createNewResourceType ();
156162 $ resource ->setName ('file ' )
You can’t perform that action at this time.
0 commit comments