feat: new feat

This commit is contained in:
JaguarJack
2023-01-08 20:30:37 +08:00
parent 596932427d
commit aad083bda7
5 changed files with 72 additions and 17 deletions

View File

@@ -51,6 +51,10 @@ trait UserRelations
*/
public function withPermissions(): self
{
if (! $this->isPermissionModuleEnabled) {
return $this;
}
/* @var Permissions $permissionsModel */
$permissionsModel = app($this->getPermissionsModel());