新增模块管理
This commit is contained in:
@@ -110,9 +110,9 @@ class InstallLocalModule
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @return bool
|
||||
*/
|
||||
protected function findModuleInPermissions()
|
||||
public function findModuleInPermissions()
|
||||
{
|
||||
return Permissions::where('module', $this->module)->find() ? true : false;
|
||||
return Permissions::withTrashed()->where('module', $this->module)->find() ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user