* [bug] Fix the bug of check priv when tutorial.

This commit is contained in:
xieqiyu
2024-09-04 17:31:41 +08:00
committed by 王于听
parent 78ce1bbe6d
commit e7a18616fc
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -2632,6 +2632,8 @@ eof;
*/
public function checkPrivByObject(string $objectType, int $objectID): bool
{
if(common::isTutorialMode()) return true;
$objectType = strtolower($objectType);
if(in_array($objectType, array('program', 'project', 'product', 'execution'))) return $this->loadModel($objectType)->checkPriv($objectID);