From 15935f37e4007fd7133fdf6bc1484209683e4249 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Fri, 15 Dec 2023 14:11:52 +0800 Subject: [PATCH] * The admin is unrestricted and can modify the efforts of any person. --- module/common/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/common/model.php b/module/common/model.php index f0ab31e1d2..29d81732d0 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -4013,6 +4013,8 @@ EOF; */ public function canOperateEffort($effort) { + if($this->app->user->admin) return true; + if(empty($effort)) return true; $actor = $effort->account;