* Fix bug#95108.

This commit is contained in:
chaideqing
2023-06-13 14:05:46 +08:00
parent 1e058a58d2
commit 3c0ac39132
8 changed files with 35 additions and 41 deletions
+12
View File
@@ -1611,4 +1611,16 @@ class programModel extends model
return $programID;
}
/**
* Check the privilege.
*
* @param int $programID
* @access public
* @return bool
*/
public function checkPriv($programID)
{
return !empty($programID) && ($this->app->user->admin || (strpos(",{$this->app->user->view->programs},", ",{$programID},") !== false));
}
}