[Jaws-commits] r9728 - in trunk/jaws/html/gadgets: Contact Friends Policy RssReader Webcam

afz at jaws-project.com afz at jaws-project.com
Thu Oct 30 03:37:35 UTC 2008


Author: afz
Date: 2008-10-30 03:37:34 +0000 (Thu, 30 Oct 2008)
New Revision: 9728

Modified:
   trunk/jaws/html/gadgets/Contact/AdminAjax.php
   trunk/jaws/html/gadgets/Friends/AdminAjax.php
   trunk/jaws/html/gadgets/Policy/AdminAjax.php
   trunk/jaws/html/gadgets/RssReader/AdminAjax.php
   trunk/jaws/html/gadgets/Webcam/AdminAjax.php
Log:
correct some check permissions

Modified: trunk/jaws/html/gadgets/Contact/AdminAjax.php
===================================================================
--- trunk/jaws/html/gadgets/Contact/AdminAjax.php	2008-10-30 03:37:18 UTC (rev 9727)
+++ trunk/jaws/html/gadgets/Contact/AdminAjax.php	2008-10-30 03:37:34 UTC (rev 9728)
@@ -139,7 +139,7 @@
      */
     function GetRecipient($id)
     {
-        $this->CheckSession('Contact', 'Default');
+        $this->CheckSession('Contact', 'default');
         $RecipientInfo = $this->_Model->GetRecipient($id);
         if (Jaws_Error::IsError($RecipientInfo)) {
             return false; //we need to handle errors on ajax

Modified: trunk/jaws/html/gadgets/Friends/AdminAjax.php
===================================================================
--- trunk/jaws/html/gadgets/Friends/AdminAjax.php	2008-10-30 03:37:18 UTC (rev 9727)
+++ trunk/jaws/html/gadgets/Friends/AdminAjax.php	2008-10-30 03:37:34 UTC (rev 9728)
@@ -29,7 +29,7 @@
      */
     function GetFriend($friend)
     {
-        $this->CheckSession('Friends', 'Default');
+        $this->CheckSession('Friends', 'default');
         $friendInfo = $this->_Model->GetFriend($friend);
         if (Jaws_Error::IsError($friendInfo)) {
             return false; //we need to handle errors on ajax
@@ -104,7 +104,7 @@
      */
     function GetData($limit = 0)
     {
-        $this->CheckSession('Friends', 'Default');
+        $this->CheckSession('Friends', 'default');
         $gadget = $GLOBALS['app']->LoadGadget('Friends', 'AdminHTML');
         if (!is_numeric($limit)) {
             $limit = 0;

Modified: trunk/jaws/html/gadgets/Policy/AdminAjax.php
===================================================================
--- trunk/jaws/html/gadgets/Policy/AdminAjax.php	2008-10-30 03:37:18 UTC (rev 9727)
+++ trunk/jaws/html/gadgets/Policy/AdminAjax.php	2008-10-30 03:37:34 UTC (rev 9728)
@@ -238,7 +238,7 @@
      */
     function GetData($offset, $grid)
     {
-        $this->CheckSession('Policy', 'Default');
+        $this->CheckSession('Policy', 'ManagePolicy');
         $gadget = $GLOBALS['app']->LoadGadget('Policy', 'AdminHTML');
         if (!is_numeric($offset)) {
             $offset = null;

Modified: trunk/jaws/html/gadgets/RssReader/AdminAjax.php
===================================================================
--- trunk/jaws/html/gadgets/RssReader/AdminAjax.php	2008-10-30 03:37:18 UTC (rev 9727)
+++ trunk/jaws/html/gadgets/RssReader/AdminAjax.php	2008-10-30 03:37:34 UTC (rev 9728)
@@ -30,7 +30,7 @@
      */
     function GetRSS($id)
     {
-        $this->CheckSession('RssReader', 'Default');
+        $this->CheckSession('RssReader', 'default');
         $rssInfo = $this->_Model->GetRSS($id);
         if (Jaws_Error::IsError($rssInfo)) {
             return false; //we need to handle errors on ajax

Modified: trunk/jaws/html/gadgets/Webcam/AdminAjax.php
===================================================================
--- trunk/jaws/html/gadgets/Webcam/AdminAjax.php	2008-10-30 03:37:18 UTC (rev 9727)
+++ trunk/jaws/html/gadgets/Webcam/AdminAjax.php	2008-10-30 03:37:34 UTC (rev 9728)
@@ -29,7 +29,7 @@
      */
     function GetWebcam($id)
     {
-        $this->CheckSession('Webcam', 'Default');
+        $this->CheckSession('Webcam', 'default');
         $webcamInfo = $this->_Model->GetWebcam($id);
         if (Jaws_Error::IsError($webcamInfo)) {
             return false; //we need to handle errors on ajax



More information about the Jaws-commits mailing list