~xibo-maintainers/xibo/release22

« back to all changes in this revision

Viewing changes to lib/Controller/User.php

  • Committer: GitHub
  • Author(s): Dan Garner
  • Date: 2019-08-20 13:28:32 UTC
  • mfrom: (702.1.51)
  • Revision ID: git-v1:0ad5e3fa93d31bb62e86229dd3e405b01a10128b
Merge pull request #654 from xibosignage/release20

Release 2.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1242
1242
                }
1243
1243
            };
1244
1244
 
1245
 
            foreach ($this->layoutFactory->getByCampaignId($object->campaignId) as $layout) {
 
1245
            foreach ($this->layoutFactory->getByCampaignId($object->campaignId, true, true) as $layout) {
1246
1246
                /* @var Layout $layout */
1247
1247
                // Assign the same permissions to the Layout
1248
1248
                $this->updatePermissions($this->permissionFactory->getAllByObjectId($this->getUser(), get_class($object), $layout->campaignId), $groupIds);