~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to lib/Factory/DayPartFactory.php

  • Committer: Dan Garner
  • Date: 2017-06-12 09:09:43 UTC
  • mto: This revision was merged to the branch mainline in revision 574.
  • Revision ID: git-v1:dc0ee869770c92ad33a78956d7657dbdc52e9c95
DayPart getById shouldn't check user permissions
xibosignage/xibo#1214

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
     */
76
76
    public function getById($dayPartId)
77
77
    {
78
 
        $dayParts = $this->query(null, ['dayPartId' => $dayPartId]);
 
78
        $dayParts = $this->query(null, ['dayPartId' => $dayPartId, 'disableUserCheck' => 1]);
79
79
 
80
80
        if (count($dayParts) <= 0)
81
81
            throw new NotFoundException();