Backport (and some code cleaning)
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 5 Nov 2006 12:20:30 +0000 (12:20 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 5 Nov 2006 12:20:30 +0000 (12:20 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1051 839d8a87-29fc-0310-9880-83ba4fa771e5

classes/platal.php
modules/xnetevents.php

index e8648ad..5cf0d75 100644 (file)
@@ -98,6 +98,10 @@ class Platal
         $args    = $this->argv;
         $args[0] = &$page;
 
+        if (strlen($hook['perms']) && $hook['perms'] != Session::v('perms')) {
+            return PL_FORBIDDEN;
+        }
+
         if ($hook['auth'] > S::v('auth', AUTH_PUBLIC)) {
             if ($hook['type'] == DO_AUTH) {
                 global $globals;
index 95d904d..15eaa7f 100644 (file)
@@ -431,9 +431,7 @@ class XnetEventsModule extends PLModule
                                         VALUES ({?}, {?}, '', '', 0)", $eid, 1);
             }
 
-#            if (is_null($evt['eid'])) {
-                pl_redirect('events');
-#            }
+            pl_redirect('events');
         }
 
         // get a list of all the payment for this asso