Permalink
Browse files

Fix info et mask keys for repo serialization.

  • Loading branch information...
1 parent 4467b1c commit 538c46b7ed8dd48a62202cf6fce10b8b53d3ebec @cdujeu cdujeu committed Sep 7, 2016
Showing with 3 additions and 3 deletions.
  1. +3 −3 core/src/plugins/access.ajxp_conf/src/RepositoriesManager.php
@@ -958,17 +958,17 @@ protected function serializeRepositoryToJSON(ContextInterface $ctx, $repository,
unset($buffer["parameters"]["META_SOURCES"]);
}
if(!$repository->isTemplate()){
- $buffer["INFO"]= [];
+ $buffer["info"]= [];
$users = UsersService::countUsersForRepository($ctx, $repository->getId(), false, true);
$cursor = ["count"];
$shares = ConfService::getConfStorageImpl()->simpleStoreList("share", $cursor, "", "serial", '', $repository->getId());
- $buffer["INFO"] = [
+ $buffer["info"] = [
"users" => $users,
"shares" => count($shares)
];
$rootGroup = RolesService::getRole("AJXP_GRP_/");
if($rootGroup !== false && $rootGroup->hasMask($repository->getId())){
- $buffer["MASK"]= $rootGroup->getMask($repository->getId());
+ $buffer["mask"]= $rootGroup->getMask($repository->getId());
}
}
if ($repository->hasParent()) {

0 comments on commit 538c46b

Please sign in to comment.