Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit f0ed3c8

Browse files
committed
Merge remote-tracking branch 'origin/develop' into fragementOnAccessDriver
2 parents 138e882 + de33c66 commit f0ed3c8

File tree

17 files changed

+68
-29
lines changed

17 files changed

+68
-29
lines changed

core/src/plugins/access.smb/manifest.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
<external_file filename="plugins/access.fs/manifest.xml" include="registry_contributions/client_configs/*" exclude=""/>
2323
<external_file filename="plugins/access.fs/fsActions.xml" include="client_configs/*" exclude=""/>
2424
<external_file filename="plugins/access.fs/manifest.xml" include="registry_contributions/hooks/*" exclude=""/>
25+
<client_configs>
26+
<component_config className="FoldersTree">
27+
<property name="display" value="d"/>
28+
</component_config>
29+
</client_configs>
2530
</registry_contributions>
2631
<dependencies>
2732
<pluginClass pluginName="access.fs"/>

core/src/plugins/core.access/class.AbstractAccessDriver.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,9 @@ public function filterUserSelectionToHidden($files)
550550
public function filterNodeName($nodePath, $nodeName, &$isLeaf, $lsOptions)
551551
{
552552
$showHiddenFiles = $this->getFilteredOption("SHOW_HIDDEN_FILES", $this->repository->getId());
553-
$isLeaf = (is_file($nodePath."/".$nodeName) || AJXP_Utils::isBrowsableArchive($nodeName));
553+
if($isLeaf === ""){
554+
$isLeaf = (is_file($nodePath."/".$nodeName) || AJXP_Utils::isBrowsableArchive($nodeName));
555+
}
554556
if (AJXP_Utils::isHidden($nodeName) && !$showHiddenFiles) {
555557
return false;
556558
}

core/src/plugins/core.conf/class.AbstractConfDriver.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,8 +1240,10 @@ public function switchAction($action, $httpVars, $fileVars)
12401240
} else if (isSet($httpVars["binary_id"])) {
12411241
if (isSet($httpVars["user_id"]) && AuthService::getLoggedUser() != null && AuthService::getLoggedUser()->isAdmin()) {
12421242
$context = array("USER" => $httpVars["user_id"]);
1243-
} else {
1243+
} else if(AuthService::getLoggedUser() !== null) {
12441244
$context = array("USER" => AuthService::getLoggedUser()->getId());
1245+
} else {
1246+
$context = array();
12451247
}
12461248
$this->loadBinary($context, $httpVars["binary_id"]);
12471249
}

core/src/plugins/core.notifications/class.AJXP_NotificationCenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function loadUserFeed($actionName, $httpVars, $fileVars)
202202
continue;
203203
}
204204
try {
205-
$node->loadNodeInfo();
205+
@$node->loadNodeInfo();
206206
} catch (Exception $e) {
207207
continue;
208208
}

core/src/plugins/core.notifications/manifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@
105105
<processing>
106106
<clientCallback><![CDATA[
107107
if(window.Notification){
108-
alert('Depending on your browser, this will ask for a specific permission. To disable, go through your browser preferences and exceptions. If you have already enabled this feature, probably nothing will hapen.');
108+
alert(pydio.MessageHash["notification_center.12"]);
109109
window.Notification.requestPermission(function(grant) {
110110
['default', 'granted', 'denied'].indexOf(grant) === true
111111
});
112112
}else{
113-
alert('Your browser does not seem to support Desktop Notifications yet.');
113+
alert(pydio.MessageHash["notification_center.13"]);
114114
}
115115
]]></clientCallback>
116116
</processing>

core/src/plugins/core.notifications/res/i18n/de.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@
3737
"9" => "Aktivit&auml;ten Arbeitsumgebungen",
3838
"10" => "Ordner-Aktivit&auml;ten",
3939
"11" => "Datei-Aktivit&auml;ten",
40+
"12" => "Depending on your browser, this will ask for a specific permission. To disable, go through your browser preferences and exceptions. If you have already enabled this feature, probably nothing will happen.",
41+
"13" => "Your browser does not seem to support Desktop Notifications yet."
4042
);

core/src/plugins/core.notifications/res/i18n/en.php

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,17 @@
1919
* The latest code can be found at <http://pyd.io/>.
2020
*/
2121
$mess=array(
22-
"1" => "Notifications",
23-
"2" => "Notifications feed",
24-
"3" => "Alerts",
25-
"4" => "Notifications",
26-
"5" => "All Events",
27-
"6" => "Go to ...",
28-
"7" => "Dismiss",
29-
"8" => "No alerts",
30-
"9" => "Workspace Activity",
31-
"10"=> "Folder Activity",
32-
"11"=> "File Activity",
22+
"1" => "Notifications",
23+
"2" => "Notifications feed",
24+
"3" => "Alerts",
25+
"4" => "Notifications",
26+
"5" => "All Events",
27+
"6" => "Go to ...",
28+
"7" => "Dismiss",
29+
"8" => "No alerts",
30+
"9" => "Workspace Activity",
31+
"10"=> "Folder Activity",
32+
"11"=> "File Activity",
33+
"12" => "Depending on your browser, this will ask for a specific permission. To disable, go through your browser preferences and exceptions. If you have already enabled this feature, probably nothing will happen.",
34+
"13" => "Your browser does not seem to support Desktop Notifications yet."
3335
);

core/src/plugins/core.notifications/res/i18n/es.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@
3030
"9" => "Workspace Activity",
3131
"10" => "Folder Activity",
3232
"11" => "File Activity",
33+
"12" => "Depending on your browser, this will ask for a specific permission. To disable, go through your browser preferences and exceptions. If you have already enabled this feature, probably nothing will happen.",
34+
"13" => "Your browser does not seem to support Desktop Notifications yet."
3335
);

core/src/plugins/core.notifications/res/i18n/fr.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@
3030
"9" => "Activité du dépôt",
3131
"10" => "Activité du dossier",
3232
"11" => "Activité du fichier",
33+
"12" => "En fonction de votre navigateur, une demande de permission devrait apparaître. Cette fonctionnalité affichera des notifications sur votre bureau lorsqu'un nouveau fichier est modifié. Pour la désactiver, rendez vous dans les préférences de votre navigateur.",
34+
"13" => "Votre navigateur ne supporte pas les notifications sur le bureau."
3335
);

core/src/plugins/core.notifications/res/i18n/it.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@
3030
"9" => "Attività Workspace",
3131
"10"=> "Attività Cartella",
3232
"11"=> "Attività File",
33+
"12" => "Depending on your browser, this will ask for a specific permission. To disable, go through your browser preferences and exceptions. If you have already enabled this feature, probably nothing will happen.",
34+
"13" => "Your browser does not seem to support Desktop Notifications yet."
3335
);

0 commit comments

Comments
 (0)