user listing flow updated

This commit is contained in:
Sevan Nerse
2022-06-28 21:58:44 +03:00
parent db60980dce
commit 4291c3c594
2 changed files with 11 additions and 17 deletions

View File

@ -311,14 +311,12 @@ class User extends Authenticatable implements HasLocalePreference
return $actions;
}
if (! $this->hasPendingInvitation()) {
$actions[] = [
'title' => trans('general.edit'),
'icon' => 'edit',
'url' => route('users.edit', $this->id),
'permission' => 'update-auth-users',
];
}
$actions[] = [
'title' => trans('general.edit'),
'icon' => 'edit',
'url' => route('users.edit', $this->id),
'permission' => 'update-auth-users',
];
if ($this->hasPendingInvitation()) {
$actions[] = [