Skip to content

Commit

Permalink
JED
Browse files Browse the repository at this point in the history
  • Loading branch information
veenmeyer committed Aug 13, 2017
1 parent 63b1f4d commit 410a96c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/models/einsatzberichtform.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function save($data)
}
}
if ($authorised !== true) {
JError::raiseError(403, JText::_('JERROR_ALERTNOAUTHOR'));
JFactory::getApplication()->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'error');
return false;
}

Expand All @@ -240,7 +240,7 @@ function delete($data)
{
$id = (!empty($data['id'])) ? $data['id'] : (int)$this->getState('einsatzbericht.id');
if(JFactory::getUser()->authorise('core.delete', 'com_einsatzkomponente.einsatzbericht'.$id) !== true){
JError::raiseError(403, JText::_('JERROR_ALERTNOAUTHOR'));
JFactory::getApplication()->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'error');
return false;
}
$table = $this->getTable();
Expand Down

0 comments on commit 410a96c

Please sign in to comment.