Fix authentication failure method name.
authorChuck Hagenbuch <chuck@horde.org>
Sun, 19 Sep 2010 01:02:23 +0000 (21:02 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Sun, 19 Sep 2010 01:02:23 +0000 (21:02 -0400)
jonah/lib/View/ChannelDelete.php
jonah/lib/View/ChannelEdit.php
jonah/lib/View/StoryDelete.php
jonah/lib/View/StoryEdit.php
jonah/lib/View/StoryList.php
jonah/lib/View/TagSearchList.php

index 5201430..4f28c74 100644 (file)
@@ -45,7 +45,7 @@ class Jonah_View_ChannelDelete extends Jonah_View_Base
         /* Check permissions and deny if not allowed. */
         if (!Jonah::checkPermissions(Jonah::typeToPermName($channel['channel_type']), Horde_Perms::DELETE, $channel_id)) {
             $notification->push(_("You are not authorised for this action."), 'horde.warning');
-            $registry->authenticationFailure();
+            $registry->authenticateFailure();
         }
 
         $title = sprintf(_("Delete News Channel \"%s\"?"), $vars->get('channel_name'));
index ceebc31..e98dc1d 100644 (file)
@@ -39,7 +39,7 @@ class Jonah_View_ChannelEdit extends Jonah_View_Base
         /* Check permissions and deny if not allowed. */
         if (!Jonah::checkPermissions(Jonah::typeToPermName($channel_type), Horde_Perms::EDIT, $channel_id)) {
             $notification->push(_("You are not authorised for this action."), 'horde.warning');
-            $registry->authenticationFailure();
+            $registry->authenticateFailure();
         }
 
         /* Output the extra fields required for this channel type. */
index f95ecee..f9222c9 100644 (file)
@@ -37,7 +37,7 @@ class Jonah_View_StoryDelete extends Jonah_View_Base
         /* Check permissions. */
         if (!Jonah::checkPermissions(Jonah::typeToPermName($channel['channel_type']), Horde_Perms::DELETE, $channel_id)) {
             $notification->push(_("You are not authorised for this action."), 'horde.warning');
-            $registry->authenticationFailure();
+            $registry->authenticateFailure();
         }
 
         try {
index 3bdcf6b..1d089a8 100644 (file)
@@ -44,7 +44,7 @@ class Jonah_View_StoryEdit extends Jonah_View_Base
         /* Check permissions. */
         if (!Jonah::checkPermissions(Jonah::typeToPermName($channel['channel_type']), Horde_Perms::EDIT, $channel_id)) {
             $notification->push(_("You are not authorised for this action."), 'horde.warning');
-            $registry->authenticationFailure();
+            $registry->authenticateFailure();
         }
 
         /* Check if a story is being edited. */
index 6808b9b..58583d9 100644 (file)
@@ -30,7 +30,7 @@ class Jonah_View_StoryList extends Jonah_View_Base
         $channel = $GLOBALS['injector']->getInstance('Jonah_Driver')->getChannel($channel_id);
         if (!Jonah::checkPermissions(Jonah::typeToPermName($channel['channel_type']), Horde_Perms::EDIT, $channel_id)) {
             $notification->push(_("You are not authorised for this action."), 'horde.warning');
-            $registry->authenticationFailure();
+            $registry->authenticateFailure();
         }
 
         /* Check if a URL has been passed. */
index fcc5958..e4b1ddc 100644 (file)
@@ -32,7 +32,7 @@ class Jonah_View_TagSearchList extends Jonah_View_Base
             $channel = $driver->getChannel($channel_id);
             if (!Jonah::checkPermissions(Jonah::typeToPermName($channel['channel_type']), Horde_Perms::SHOW, $channel_id)) {
                 $notification->push(_("You are not authorised for this action."), 'horde.warning');
-                $registry->authenticationFailure();
+                $registry->authenticateFailure();
             }
             $channel_ids = array($channel_id);
         } else {