Merge branch 'xorg/maint' into xorg/master
[platal.git] / modules / xnetevents.php
index edee012..f345f13 100644 (file)
@@ -26,10 +26,10 @@ class XnetEventsModule extends PLModule
     function handlers()
     {
         return array(
-            '%grp/events'       => $this->make_hook('events', AUTH_MDP),
-            '%grp/events/sub'   => $this->make_hook('sub',    AUTH_MDP),
-            '%grp/events/csv'   => $this->make_hook('csv',    AUTH_MDP, 'user', NO_HTTPS),
-            '%grp/events/ical'  => $this->make_hook('ical',   AUTH_MDP, 'user', NO_HTTPS),
+            '%grp/events'       => $this->make_hook('events', AUTH_MDP, 'groups'),
+            '%grp/events/sub'   => $this->make_hook('sub',    AUTH_MDP, 'groups'),
+            '%grp/events/csv'   => $this->make_hook('csv',    AUTH_MDP, 'groups', NO_HTTPS),
+            '%grp/events/ical'  => $this->make_hook('ical',   AUTH_MDP, 'groups', NO_HTTPS),
             '%grp/events/edit'  => $this->make_hook('edit',   AUTH_MDP, 'groupadmin'),
             '%grp/events/admin' => $this->make_hook('admin',  AUTH_MDP, 'groupmember'),
         );