<cm:folder view:childName="${spaces.user_homes.childname}">
<app:uifacets/>
<cm:name>${spaces.user_homes.name}</cm:name>
<app:icon>space-icon-default</app:icon>
<cm:title>${spaces.user_homes.name}</cm:title>
<cm:description>${spaces.user_homes.description}</cm:description>
</cm:folder>
var array = new Array();
deletePermissions(space);
function deletePermissions(nodeStart) {
var count = 0;
var childrenList = nodeStart.children;
for (var i = 0; i < childrenList.length; i++) {
nodeVar = childrenList;
if (nodeVar.isContainer) {
var array[count] = new Array();
array[count][0] = nodeVar.name;
var permissions = nodeVar.permissions;
for (var j = 0; j < permissions.length; j++) {
/*var result = permissions[j];
if (result == [[[LECTURA PARA EVERYONE]]]) {
[[[QUITAR PERMISO EVERYONE]]]
}*/
array[count][j+1] = permissions[j];
}
count++;
}
}
}
var logFile = space.childByNamePath("permissions.txt");
if (logFile == null) {
logFile = space.createFile("permissions.txt");
}
var log = "************** PERMISSIONS **************\n \n";
for (var i = 0; i < array.length; i++) {
log += array[0] + "\t \n";
for (var j = 1; j < array.length; j++) {
log += "\t \t" + array[j] + "\n";
}
}
logFile.content += log;
deletePermissions(userhome, "ALLOWED", "GROUP_EVERYONE", "Consumer")
deletePermissions(companyhome.childByNamePath("Espacios personales de usuario"), "ALLOWED", "GROUP_EVERYONE", "Consumer")
var espacios = space.children;
for (var i=0; i< espacios.length; i++)
{
…..
}
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.