Skip to content

Commit

Permalink
Merge pull request #185 from laravel-enso/update-config-version
Browse files Browse the repository at this point in the history
Update config.php
  • Loading branch information
raftx24 committed Feb 11, 2021
2 parents 78cd552 + 9d215ad commit 736b8ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion config/config.php
@@ -1,7 +1,7 @@
<?php

return [
'version' => '3.9.x',
'version' => '4.6.0',
'ownerCompanyId' => env('OWNER_COMPANY_ID', 1),
'showQuote' => env('SHOW_QUOTE', true),
'defaultRole' => 'admin',
Expand Down
8 changes: 0 additions & 8 deletions src/Policies/User.php
Expand Up @@ -60,14 +60,6 @@ public function sessions(Model $user, Model $targetUser)
return $user->id === $targetUser->id;
}

public function impersonate(Model $user, Model $targetUser)
{
return $user->can('access-route', 'core.impersonate.start')
&& ! $targetUser->isAdmin()
&& $user->id !== $targetUser->id
&& ! $user->isImpersonating();
}

protected function isSuperior(Model $user, Model $targetUser): bool
{
return $user->isSupervisor() && ! $targetUser->isSupervisor()
Expand Down

0 comments on commit 736b8ba

Please sign in to comment.