Skip to content

Commit

Permalink
fixes error in stats when admin
Browse files Browse the repository at this point in the history
  • Loading branch information
davidenke committed May 19, 2015
1 parent 6b705d6 commit ac5574a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dca/tl_newsletter.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ public function listNewsletterArticles($arrRow) {

public function checkPermission() {
if (Input::get('key') == 'stats') {
if ($this->User->isAdmin)
{
return;
}

// Set root IDs
if (!is_array($this->User->newsletters) || empty($this->User->newsletters)) {
$root = array(0);
Expand Down

0 comments on commit ac5574a

Please sign in to comment.