소스 검색

Update ItemController.class.php

star7th 5 년 전
부모
커밋
8baa84a0b0
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      server/Application/Api/Controller/ItemController.class.php

+ 5 - 1
server/Application/Api/Controller/ItemController.class.php

@@ -109,7 +109,11 @@ class ItemController extends BaseController {
             $help_url = "https://www.showdoc.cc/help";
         }
 
-
+        //当已经归档了,则去掉编辑权限
+        if($item['is_archived']){
+            $ItemPermn = $ItemCreator = false; 
+        }
+        
         $return = array(
             "item_id"=>$item_id ,
             "item_domain"=>$item['item_domain'] ,