* Change the judge permission logic.

This commit is contained in:
tianshujie
2023-07-10 14:49:15 +08:00
parent e63b66b780
commit 494d8f96d2
2 changed files with 3 additions and 7 deletions
+2 -6
View File
@@ -1,11 +1,7 @@
<?php
$config->custom->browseStoryConcept->dtable = new stdclass();
if(common::hasPriv('custom', 'setDefaultConcept'))
{
$config->custom->browseStoryConcept->dtable->fieldList['default']['type'] = 'id';
$config->custom->browseStoryConcept->dtable->fieldList['default']['sortType'] = false;
}
$config->custom->browseStoryConcept->dtable->fieldList['default']['type'] = 'id';
$config->custom->browseStoryConcept->dtable->fieldList['default']['sortType'] = false;
if($config->URAndSR)
{
+1 -1
View File
@@ -442,8 +442,8 @@ class custom extends control
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => true, 'closeModal' => true));
}
if(!common::hasPriv('custom', 'setDefaultConcept')) unset($this->config->custom->browseStoryConcept->dtable->fieldList['default']);
$this->view->title = $this->lang->custom->setStoryConcept;
$this->display();
}