~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to lib/Factory/PermissionFactory.php

  • Committer: GitHub
  • Author(s): Dan Garner
  • Date: 2019-01-29 13:37:37 UTC
  • mfrom: (676.1.15)
  • Revision ID: git-v1:ff99928943294e7eac5a7ae1d3dbd43a6b13802b
Merge pull request #467 from dasgarner/bugfix/1.8.12-pack5

Bugfix/1.8.12 pack5

Show diffs side-by-side

added added

removed removed

Lines of Context:
326
326
 
327
327
        foreach ($this->getStore()->select($sql, $params) as $row) {
328
328
            $permission = $this->createEmpty();
329
 
            $permission->permissionId = $row['permissionId'];
330
 
            $permission->groupId = $row['groupId'];
331
 
            $permission->view = $row['view'];
332
 
            $permission->edit = $row['edit'];
333
 
            $permission->delete = $row['delete'];
334
 
            $permission->objectId = $objectId;
 
329
            $permission->permissionId = intval($row['permissionId']);
 
330
            $permission->groupId = intval($row['groupId']);
 
331
            $permission->view = intval($row['view']);
 
332
            $permission->edit = intval($row['edit']);
 
333
            $permission->delete = intval($row['delete']);
 
334
            $permission->objectId = intval($objectId);
335
335
            $permission->entity = $entity;
336
 
            $permission->entityId = $entityId;
337
 
            $permission->isUser = $row['isuserspecific'];
 
336
            $permission->entityId = intval($entityId);
 
337
            $permission->isUser = intval($row['isuserspecific']);
338
338
            $permission->group = $this->getSanitizer()->string($row['group']);
339
339
 
340
340
            $permissions[] = $permission;