From 936dee9da54c44443ccd70eb1e541e4aedf2ff02 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 1 Apr 2022 06:26:52 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=96=87=E4=BB=B6=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E7=82=B9=E5=87=BB=E7=A1=AE=E5=AE=9A=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E4=B8=BB=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/File.php | 4 ++-- resources/assets/js/pages/manage/file.vue | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/app/Models/File.php b/app/Models/File.php index 9995df685..97df338a2 100644 --- a/app/Models/File.php +++ b/app/Models/File.php @@ -325,8 +325,8 @@ public static function permissionFind($id, $limit = 0, &$permission = -1) if ($permission < $limit) { $msg = match ($limit) { 1000 => '仅限所有者或创建者操作', - 1 => '没有读写权限', - default => '没有访问权限', + 1 => '没有修改写入权限', + default => '没有查看访问权限', }; throw new ApiException($msg); } diff --git a/resources/assets/js/pages/manage/file.vue b/resources/assets/js/pages/manage/file.vue index 3ae78b652..5036652d7 100644 --- a/resources/assets/js/pages/manage/file.vue +++ b/resources/assets/js/pages/manage/file.vue @@ -23,7 +23,7 @@