Skip to content

Commit

Permalink
1.52.04 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kalcaddle committed Aug 2, 2024
1 parent 0820976 commit 1530c5c
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 13 deletions.
5 changes: 5 additions & 0 deletions app/controller/explorer/auth.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,11 @@ public function checkShare($shareID,$sourceID,$method){
if($timeout > 0 && $timeout < time()){
return $this->errorMsg(LNG('explorer.share.expiredTips'));
}

// 关闭协作分享的;
if($shareInfo['isShareTo'] == '0'){
return $this->errorMsg(LNG('explorer.share.notExist').'[status=0]');
}

// 内部协作分享有效性处理: 当分享者被禁用,没有分享权限,所在文件不再拥有分享权限时自动禁用外链分享;
if(!Action('explorer.authUser')->canShare($shareInfo)){
Expand Down
2 changes: 2 additions & 0 deletions app/controller/explorer/authUser.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ public function canShare($shareInfo){
if(!$shareInfo['sourcePath'] && $shareInfo['sourceID'] != '0'){
$shareInfo['sourcePath'] = KodIO::make($shareInfo['sourceID']);
}
if($shareInfo['isLink'] == '0' && $shareInfo['isShareTo'] == '0'){return false;}
if($shareInfo['userID'] == '0'){return true;} // 系统分享,允许访问;

// 系统分享;则不检测;
$isSystemSource = '/systemPath/systemSource/';
Expand Down
2 changes: 1 addition & 1 deletion app/sdks/archiveLib/bin/data.bin

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config/version.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php
define('KOD_VERSION','1.52');
define('KOD_VERSION_BUILD','03');
define('KOD_VERSION_BUILD','04');
4 changes: 2 additions & 2 deletions static/app/dist/api.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/app/dist/lib.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/app/dist/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/app/dist/sdk.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/app/dist/vendor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/style/dist/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/style/dist/sdk.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/style/lib/main.css

Large diffs are not rendered by default.

0 comments on commit 1530c5c

Please sign in to comment.