Skip to content

Commit 1176b9f

Browse files
committed
Revert "šŸ› Override getAllPermissions() in Role"
This reverts commit 4807005.
1 parent 4807005 commit 1176b9f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

ā€Žsrc/Models/Role.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Illuminate\Database\Eloquent\Model;
66
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
7-
use Illuminate\Support\Collection;
87
use Spatie\Permission\Contracts\Role as RoleContract;
98
use Spatie\Permission\Exceptions\GuardDoesNotMatch;
109
use Spatie\Permission\Exceptions\RoleAlreadyExists;
@@ -196,12 +195,4 @@ public function hasPermissionTo($permission): bool
196195

197196
return $this->permissions->contains($permission->getKeyName(), $permission->getKey());
198197
}
199-
200-
/**
201-
* Return all the permissions the model has, both directly and via roles.
202-
*/
203-
public function getAllPermissions(): Collection
204-
{
205-
return $this->permissions->sort()->values();
206-
}
207198
}

0 commit comments

Comments
Ā (0)