|
...
|
...
|
@@ -114,7 +114,7 @@ class ComController extends BaseController |
|
|
|
$info['role_menu'] = trim(str_replace(',52,',',',','.$info['role_menu'].','),',');
|
|
|
|
}
|
|
|
|
$is_comment = $this->getIsComment();
|
|
|
|
if(!$is_comment){
|
|
|
|
if($is_comment != 1){
|
|
|
|
$info['role_menu'] = trim(str_replace(',55,',',',','.$info['role_menu'].','),',');
|
|
|
|
}
|
|
|
|
$this->map = [
|
|
...
|
...
|
@@ -246,7 +246,7 @@ class ComController extends BaseController |
|
|
|
* @time :2024/9/14 13:32
|
|
|
|
*/
|
|
|
|
public function getIsComment(){
|
|
|
|
return $this->user['is_common'] ?? 0;
|
|
|
|
return $this->user['is_comment'] ?? 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|