/* 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'));
/* 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. */
/* 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 {
/* 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. */
$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. */
$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 {