port add model in order manager of collection

This commit is contained in:
aina-esokia
2019-04-02 15:36:49 +04:00
parent 141bfde9ca
commit e68081399d
3 changed files with 5 additions and 1 deletions

View File

@@ -319,7 +319,9 @@ class CollectionService
$result = $userQuery->on_base_ids([ $reference->getBaseId()] ) $result = $userQuery->on_base_ids([ $reference->getBaseId()] )
->who_have_right([\ACL::ORDER_MASTER]) ->who_have_right([\ACL::ORDER_MASTER])
->execute()->get_results(); ->include_templates(true)
->execute()
->get_results();
/** @var ACLProvider $acl */ /** @var ACLProvider $acl */
$acl = $this->app['acl']; $acl = $this->app['acl'];

View File

@@ -50,6 +50,7 @@ class CollectionController extends Controller
$query = $this->createUserQuery(); $query = $this->createUserQuery();
$admins = $query->on_base_ids([$bas_id]) $admins = $query->on_base_ids([$bas_id])
->who_have_right([\ACL::ORDER_MASTER]) ->who_have_right([\ACL::ORDER_MASTER])
->include_templates(true)
->execute() ->execute()
->get_results(); ->get_results();
} }

View File

@@ -233,6 +233,7 @@ class UserController extends Controller
->who_have_right($have_right) ->who_have_right($have_right)
->who_have_not_right($have_not_right) ->who_have_not_right($have_not_right)
->on_base_ids($on_base) ->on_base_ids($on_base)
->include_templates(true)
->execute() ->execute()
->get_results(); ->get_results();