~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to lib/Controller/DisplayGroup.php

  • Committer: Dan Garner
  • Date: 2015-08-14 08:10:12 UTC
  • mfrom: (447.1.48)
  • Revision ID: git-v1:11ef90e0c8e85375d5f62b0f987a1e02b808f6ea
Merge pull request #97 from dasgarner/feature/playlists

First test fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
429
429
        foreach ($displays as $displayId) {
430
430
            $display = DisplayFactory::getById($displayId);
431
431
 
432
 
            if (!$this->getUser()->checkViewable($displayId))
 
432
            if (!$this->getUser()->checkViewable(DisplayGroupFactory::getById($display->displayGroupId)))
433
433
                throw new AccessDeniedException(__('Access Denied to Display'));
434
434
 
435
435
            $displayGroup->assignDisplay($display);