isLocked && UserStaticRules::atLeastRole($authModel, RoleEnum::admin)) || UserStaticRules::atLeastRole($authModel, RoleEnum::conceptor); } /** * Determine whether the user can duplicate the model. * * @param \Illuminate\Database\Eloquent\Model $authModel * @return boolean */ public function duplicate(Model $authModel): bool { return UserStaticRules::atLeastRole($authModel, RoleEnum::admin); } }