@@ -48,11 +48,11 @@ class DAVController extends AbstractController
4848 protected $ webDAVEnabled ;
4949
5050 /**
51- * is Public Calendar enabled?
51+ * Are public calendars enabled?
5252 *
5353 * @var bool
5454 */
55- protected $ publicCalendarEnabled ;
55+ protected $ publicCalendarsEnabled ;
5656
5757 /**
5858 * Mail address to send mails from.
@@ -142,14 +142,14 @@ class DAVController extends AbstractController
142142 */
143143 protected $ server ;
144144
145- public function __construct (MailerInterface $ mailer , BasicAuth $ basicAuthBackend , IMAPAuth $ IMAPAuthBackend , LDAPAuth $ LDAPAuthBackend , UrlGeneratorInterface $ router , EntityManagerInterface $ entityManager , LoggerInterface $ logger , string $ publicDir , bool $ calDAVEnabled = true , bool $ cardDAVEnabled = true , bool $ webDAVEnabled = false , bool $ publicCalendarEnabled , ?string $ inviteAddress = null , ?string $ authMethod = null , ?string $ authRealm = null , ?string $ webdavPublicDir = null , ?string $ webdavHomesDir = null , ?string $ webdavTmpDir = null )
145+ public function __construct (MailerInterface $ mailer , BasicAuth $ basicAuthBackend , IMAPAuth $ IMAPAuthBackend , LDAPAuth $ LDAPAuthBackend , UrlGeneratorInterface $ router , EntityManagerInterface $ entityManager , LoggerInterface $ logger , string $ publicDir , bool $ calDAVEnabled = true , bool $ cardDAVEnabled = true , bool $ webDAVEnabled = false , bool $ publicCalendarsEnabled = true , ?string $ inviteAddress = null , ?string $ authMethod = null , ?string $ authRealm = null , ?string $ webdavPublicDir = null , ?string $ webdavHomesDir = null , ?string $ webdavTmpDir = null )
146146 {
147147 $ this ->publicDir = $ publicDir ;
148148
149149 $ this ->calDAVEnabled = $ calDAVEnabled ;
150150 $ this ->cardDAVEnabled = $ cardDAVEnabled ;
151151 $ this ->webDAVEnabled = $ webDAVEnabled ;
152- $ this ->publicCalendarEnabled = $ publicCalendarEnabled ;
152+ $ this ->publicCalendarsEnabled = $ publicCalendarsEnabled ;
153153 $ this ->inviteAddress = $ inviteAddress ?? null ;
154154
155155 $ this ->webdavPublicDir = $ webdavPublicDir ;
@@ -238,7 +238,7 @@ private function initServer(string $authMethod, string $authRealm = User::DEFAUL
238238 $ this ->server ->addPlugin (new \Sabre \DAV \Browser \Plugin (false )); // We disable the file creation / upload / sharing in the browser
239239 $ this ->server ->addPlugin (new \Sabre \DAV \Sync \Plugin ());
240240
241- $ aclPlugin = new PublicAwareDAVACLPlugin ($ this ->em , $ this ->publicCalendarEnabled );
241+ $ aclPlugin = new PublicAwareDAVACLPlugin ($ this ->em , $ this ->publicCalendarsEnabled );
242242 $ aclPlugin ->hideNodesFromListings = true ;
243243
244244 // Fetch admins, if any
0 commit comments