* Change the judge permission logic.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user