* Name 'other' package.

This commit is contained in:
zhujinyong
2023-09-21 17:36:15 +08:00
parent f737075fa9
commit 096514e83e
6 changed files with 1362 additions and 2346 deletions
+3 -1
View File
@@ -1770,7 +1770,7 @@ class groupModel extends model
if(isset($allPrivs["$module-$method"])) continue;
if(!isset($this->lang->$module->$methodLang)) $this->app->loadLang($module);
$priv = (object)array('subset' => $module, 'package' => 'other', 'module' => $module, 'method' => $method, 'selected' => false, 'name' => $this->lang->$moduleName->$methodLang);
$priv = (object)array('subset' => $module, 'package' => 'other', 'module' => $module, 'method' => $method, 'selected' => false, 'name' => $this->lang->$module->$methodLang);
$privList["$module-$method"] = $priv;
}
@@ -2319,6 +2319,8 @@ class groupModel extends model
*/
public function getRelatedPrivs($allPrivList, $selectedPrivList, $recommendSelect = array())
{
foreach($this->lang->resource as $moduleName => $action) $this->app->loadLang($moduleName);
$privSubsets = array();
$relatedPrivs = array('depend' => array(), 'recommend' => array());
foreach($this->config->group->package as $packagePage => $package)