}
if (!array_key_exists($calendar,
Kronolith::listCalendars(false, Horde_Perms::READ))) {
- throw new Kronolith_Exception(_("Permission Denied"));
+ throw new Horde_Exception_PermissionDenied();
}
$driver = Kronolith::getDriver(null, $calendar);
if (!array_key_exists($calendar,
Kronolith::listCalendars(false, Horde_Perms::READ))) {
- throw new Kronolith_Exception(_("Permission Denied"));
+ throw new Horde_Exception_PermissionDenied();
}
$history = Horde_History::singleton();
if (!array_key_exists($calendar,
Kronolith::listCalendars(false, Horde_Perms::READ))) {
- throw new Kronolith_Exception(_("Permission Denied"));
+ throw new Horde_Exception_PermissionDenied();
}
$history = Horde_History::singleton();
}
if (!array_key_exists($calendar,
Kronolith::listCalendars(false, Horde_Perms::EDIT))) {
- throw new Kronolith_Exception(_("Permission Denied"));
+ throw new Horde_Exception_PermissionDenied();
}
switch ($contentType) {
}
if (!array_key_exists($calendar,
Kronolith::listCalendars(false, Horde_Perms::EDIT))) {
- throw new Kronolith_Exception(_("Permission Denied"));
+ throw new Horde_Exception_PermissionDenied();
}
$event = Kronolith::quickAdd($text, $calendar);
return $event->uid;
$event = Kronolith::getDriver()->getByUID($uid);
if (!$event->hasPermission(Horde_Perms::READ)) {
- throw new Kronolith_Exception(_("Permission Denied"));
+ throw new Horde_Exception_PermissionDenied();
}
$version = '2.0';
if (!array_key_exists($calendar,
Kronolith::listCalendars(false, Horde_Perms::READ))) {
- throw new Kronolith_Exception(_("Permission Denied"));
+ throw new Horde_Exception_PermissionDenied();
}
$kronolith_driver = Kronolith::getDriver(null, $calendar);
}
if (empty($event)) {
- throw new Kronolith_Exception(_("Permission Denied"));
+ throw new Horde_Exception_PermissionDenied();
}
$kronolith_driver->deleteEvent($event->id);
if (!$event->hasPermission(Horde_Perms::EDIT) ||
($event->private && $event->creator != Horde_Auth::getAuth())) {
- throw new Kronolith_Exception(_("Permission Denied"));
+ throw new Horde_Exception_PermissionDenied();
}
if (is_a($content, 'Horde_iCalendar_vevent')) {
{
$event = Kronolith::getDriver()->getByUID($uid);
if (!$event->hasPermission(Horde_Perms::SHOW)) {
- throw new Kronolith_Exception(_("Permission Denied"));
+ throw new Horde_Exception_PermissionDenied();
}
return $event;
if (empty($event) ||
($event->private && $event->creator != Horde_Auth::getAuth())) {
- throw new Kronolith_Exception(_("Permission Denied"));
+ throw new Horde_Exception_PermissionDenied();
}
$atnames = $response->getAttribute('ATTENDEE');
$allowed_calendars = Kronolith::listCalendars(false, Horde_Perms::READ);
foreach ($calendars as $calendar) {
if (!array_key_exists($calendar, $allowed_calendars)) {
- throw new Kronolith_Exception(_("Permission Denied"));
+ throw new Horde_Exception_PermissionDenied();
}
}
$current_user = Horde_Auth::getAuth();
if ((empty($user) || $user != $current_user) && !Horde_Auth::isAdmin()) {
- throw new Kronolith_Exception(_("Permission Denied"));
+ throw new Horde_Exception_PermissionDenied();
}
$group = Group::singleton();
{
if (!array_key_exists($calendar,
Kronolith::listCalendars(false, Horde_Perms::EDIT))) {
- throw new Kronolith_Exception(_("Permission Denied"));
+ throw new Horde_Exception_PermissionDenied();
}
return $GLOBALS['kronolith_shares']->getShare($calendar)->lock($calendar, $event);
}
{
if (!array_key_exists($calendar,
Kronolith::listCalendars(false, Horde_Perms::EDIT))) {
- throw new Kronolith_Exception(_("Permission Denied"));
+ throw new Horde_Exception_PermissionDenied();
}
return $GLOBALS['kronolith_shares']->getShare($calendar)->unlock($lockid);
}
{
if (!array_key_exists($calendar,
Kronolith::listCalendars(false, Horde_Perms::READ))) {
- throw new Kronolith_Exception(_("Permission Denied"));
+ throw new Horde_Exception_PermissionDenied();
}
return $GLOBALS['kronolith_shares']->getShare($calendar)->checkLocks($event);
}