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

Commit

Permalink
Fix unshare when removing users and no public link active.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Feb 22, 2016
1 parent 5acd022 commit c2d96fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/plugins/action.share/class.ShareCenter.php
Expand Up @@ -1425,6 +1425,7 @@ public function shareNode($httpVars, &$update){

$hiddenUserEntry = null;
$downloadDisabled = false;
$originalHttpVars = $httpVars;
if(isSet($httpVars["enable_public_link"])){
// PREPARE HIDDEN USER DATA
if(isSet($httpVars["hash"])){
Expand Down Expand Up @@ -1457,7 +1458,7 @@ public function shareNode($httpVars, &$update){
}
if(!count($users) && !count($groups)){
ob_start();
$this->switchAction("unshare", $httpVars, array());
$this->switchAction("unshare", $originalHttpVars, array());
ob_end_clean();
return null;
}
Expand Down

0 comments on commit c2d96fc

Please sign in to comment.