aboutsummaryrefslogtreecommitdiffstats
path: root/egyéb/nextcloud
diff options
context:
space:
mode:
authorM.Gergo2020-03-31 02:13:39 +0200
committerM.Gergo2020-03-31 02:13:39 +0200
commitf66cfd50ed05670942d931fa8dc5466d890316ca (patch)
tree7b7150a184ec417924b77cde1223df5b564b7678 /egyéb/nextcloud
parent9777b7c6c1382a58071b0f2b6701cbbe7204e1d2 (diff)
downloadmayor-f66cfd50ed05670942d931fa8dc5466d890316ca.tar.gz
mayor-f66cfd50ed05670942d931fa8dc5466d890316ca.zip
Mayor-Nextcloud script: csoportmappa
Diffstat (limited to 'egyéb/nextcloud')
-rw-r--r--egyéb/nextcloud/mayor-nextcloud.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/egyéb/nextcloud/mayor-nextcloud.php b/egyéb/nextcloud/mayor-nextcloud.php
index a2d93402..ebaea7ec 100644
--- a/egyéb/nextcloud/mayor-nextcloud.php
+++ b/egyéb/nextcloud/mayor-nextcloud.php
@@ -434,7 +434,7 @@ if (function_exists('mysqli_connect') and PHP_MAJOR_VERSION >= 7) { //MySQLi (Im
function groupdir_create_root($user, $oktId, $path){ //Tankörmappák gyökerét előállítja
global $groupdir_user, $m2n, $occ_path, $occ_user,$log;
$ret = array(false, false);
- if(($groupdir_user === "" || ($groupdir_user !== "" && $curr == $groupdir_user)) && $oktId > 0 && $m2n['manage_groupdirs'] === true){ //Ha null -> mindenki, Ha "user" -> scak neki, && tanár && groupdir bekapcsolava
+ if(($groupdir_user === "" || ($groupdir_user !== "" && $user == $groupdir_user)) && $oktId > 0 && $m2n['manage_groupdirs'] === true){ //Ha null -> mindenki, Ha "user" -> scak neki, && tanár && groupdir bekapcsolava
if(is_file($occ_path."/data/".$user."/files/".$path) || is_link($occ_path."/data/".$user."/files/".$path)){ //Ha már vam ott valami ilyen fájl
if(@unlink( $occ_path."/data/".$user."/files/".$path."backup") && $log['verbose'] > 0 ){ //Helyet csinál a backupnak (sorry)
@@ -452,7 +452,7 @@ if (function_exists('mysqli_connect') and PHP_MAJOR_VERSION >= 7) { //MySQLi (Im
function groupdir_create_groupdir($user, $oktId, $path){
global $groupdir_user, $m2n;
- if(($groupdir_user === "" || ($groupdir_user !== "" && $curr == $groupdir_user)) && $oktId > 0 && $m2n['manage_groupdirs'] === true){
+ if(($groupdir_user === "" || ($groupdir_user !== "" && $user == $groupdir_user)) && $oktId > 0 && $m2n['manage_groupdirs'] === true){
return create_dir($user, $path); // Tankörmappa gyökér létrehozása
}
}
@@ -460,7 +460,7 @@ if (function_exists('mysqli_connect') and PHP_MAJOR_VERSION >= 7) { //MySQLi (Im
function groupdir_finish($user, $oktId, $path, $tankorei){
global $groupdir_user, $m2n;
$ret = array();
- if(($groupdir_user === "" || ($groupdir_user !== "" && $curr == $groupdir_user)) && $oktId > 0 && $m2n['manage_groupdirs'] === true){
+ if(($groupdir_user === "" || ($groupdir_user !== "" && $user == $groupdir_user)) && $oktId > 0 && $m2n['manage_groupdirs'] === true){
if(isset($tankrei)) {
$ret = clean_dir($user, $path, $tankorei);
}