File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -249,14 +249,13 @@ public function hasAnyPermission(...$permissions): bool
249249 * @param string|int|array|\Spatie\Permission\Contracts\Permission|\Illuminate\Support\Collection ...$permissions
250250 *
251251 * @return bool
252- * @throws \Exception
253252 */
254253 public function hasAllPermissions (...$ permissions ): bool
255254 {
256255 $ permissions = collect ($ permissions )->flatten ();
257256
258257 foreach ($ permissions as $ permission ) {
259- if (! $ this ->hasPermissionTo ($ permission )) {
258+ if (! $ this ->checkPermissionTo ($ permission )) {
260259 return false ;
261260 }
262261 }
@@ -486,6 +485,7 @@ public function forgetCachedPermissions()
486485
487486 /**
488487 * Check if the model has All of the requested Direct permissions.
488+ *
489489 * @param string|int|array|\Spatie\Permission\Contracts\Permission|\Illuminate\Support\Collection ...$permissions
490490 * @return bool
491491 */
@@ -504,6 +504,7 @@ public function hasAllDirectPermissions(...$permissions): bool
504504
505505 /**
506506 * Check if the model has Any of the requested Direct permissions.
507+ *
507508 * @param string|int|array|\Spatie\Permission\Contracts\Permission|\Illuminate\Support\Collection ...$permissions
508509 * @return bool
509510 */
You can’t perform that action at this time.
0 commit comments