From a5751d362eae58bf1ff2db2906ed9204d73de3a6 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sat, 18 Sep 2010 21:02:23 -0400 Subject: [PATCH] Fix authentication failure method name. --- jonah/lib/View/ChannelDelete.php | 2 +- jonah/lib/View/ChannelEdit.php | 2 +- jonah/lib/View/StoryDelete.php | 2 +- jonah/lib/View/StoryEdit.php | 2 +- jonah/lib/View/StoryList.php | 2 +- jonah/lib/View/TagSearchList.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/jonah/lib/View/ChannelDelete.php b/jonah/lib/View/ChannelDelete.php index 520143041..4f28c741b 100644 --- a/jonah/lib/View/ChannelDelete.php +++ b/jonah/lib/View/ChannelDelete.php @@ -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')); diff --git a/jonah/lib/View/ChannelEdit.php b/jonah/lib/View/ChannelEdit.php index ceebc31a1..e98dc1dc5 100644 --- a/jonah/lib/View/ChannelEdit.php +++ b/jonah/lib/View/ChannelEdit.php @@ -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. */ diff --git a/jonah/lib/View/StoryDelete.php b/jonah/lib/View/StoryDelete.php index f95ecee19..f9222c91b 100644 --- a/jonah/lib/View/StoryDelete.php +++ b/jonah/lib/View/StoryDelete.php @@ -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 { diff --git a/jonah/lib/View/StoryEdit.php b/jonah/lib/View/StoryEdit.php index 3bdcf6bdc..1d089a831 100644 --- a/jonah/lib/View/StoryEdit.php +++ b/jonah/lib/View/StoryEdit.php @@ -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. */ diff --git a/jonah/lib/View/StoryList.php b/jonah/lib/View/StoryList.php index 6808b9b93..58583d933 100644 --- a/jonah/lib/View/StoryList.php +++ b/jonah/lib/View/StoryList.php @@ -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. */ diff --git a/jonah/lib/View/TagSearchList.php b/jonah/lib/View/TagSearchList.php index fcc5958dd..e4b1ddc07 100644 --- a/jonah/lib/View/TagSearchList.php +++ b/jonah/lib/View/TagSearchList.php @@ -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 { -- 2.11.0