Commit b422a19a authored by naji's avatar naji
Browse files

[OPS]: Retour

parent 86064ba0
......@@ -17,21 +17,12 @@ db.applications.insert({
"hasTenantList" : true,
"hasHighlight" : false,
"tooltip" : "Accéder, Créer, Modifier ou Supprimer les profils d'archivage et les profils d'unité archivistique",
"target" : "_self"
"target" : "_self",
{% if vitamui.pastis.base_url is defined %}
"serviceId": "^{{ vitamui.pastis.base_url }}/.*",
{% else %}
"serviceId": "^{{ url_prefix }}/pastis/.*",
{% endif %}
});
db.applications.update({
"identifier" : "PASTIS_APP",
}, {
$set: {
{% if vitamui.pastis.base_url is defined %}
"serviceId": "^{{ vitamui.pastis.base_url }}/.*",
{% else %}
"serviceId": "^{{ url_prefix }}/pastis/.*",
{% endif %}
},
}
);
print("END 221_pastis_application_ref.js");
db = db.getSiblingDB('iam')
print("START 222_pastis_profile_ref.js");
db.profiles.insert({
"_id" : "system_pastis",
"identifier" : NumberInt(maxIdProfile++),
"name" : "Pastis Profile",
"description" : "Pastis Profile",
"tenantIdentifier": NumberInt({{ vitamui_platform_informations.proof_tenant }}),
"applicationName" : "PASTIS_APP",
"enabled" : true,
"readonly" : true,
"level" : "",
"customerId" : "system_customer",
"roles" : [
{
"name": "ROLE_GET_PASTIS"
},
{
"name": "ROLE_CREATE_PASTIS"
},
{
"name": "ROLE_UPDATE_PASTIS"
},
{
"name": "ROLE_DELETE_PASTIS"
}
]
});
print("END 222_pastis_profile_ref.js");
......@@ -59,5 +59,3 @@ db.groups.updateOne( {
});
print("END 307_iam_ref.js");
db = db.getSiblingDB('iam')
print("START 321_iam_groups_pastis_ref.js");
// ========================================= GROUPS =========================================
// ----------------------------------------- LEVEL "0" -----------------------------------------
db.groups.updateOne( {
"_id": "admin_group"
}, {
$addToSet: {
"profileIds": {
"system_pastis"
}
}
});
print("END 321_iam_groups_pastis_ref.js");
......@@ -30,9 +30,6 @@ db.tenants.find({ "identifier": { $gte: 0 } }).forEach(function (tenant) {
},
{
"name": "ROLE_UPDATE_PASTIS"
},
{
"name": "ROLE_DELETE_PASTIS"
}
]
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment