Skip to content

Commit

Permalink
Revert parameter name change (#49659)
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald authored Jan 12, 2024
1 parent dbce9d0 commit e68a840
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/Illuminate/Auth/Access/Gate.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,25 +320,25 @@ public function after(callable $callback)
/**
* Determine if all of the given abilities should be granted for the current user.
*
* @param iterable|string $abilities
* @param iterable|string $ability
* @param array|mixed $arguments
* @return bool
*/
public function allows($abilities, $arguments = [])
public function allows($ability, $arguments = [])
{
return $this->check($abilities, $arguments);
return $this->check($ability, $arguments);
}

/**
* Determine if any of the given abilities should be denied for the current user.
*
* @param iterable|string $abilities
* @param iterable|string $ability
* @param array|mixed $arguments
* @return bool
*/
public function denies($abilities, $arguments = [])
public function denies($ability, $arguments = [])
{
return ! $this->allows($abilities, $arguments);
return ! $this->allows($ability, $arguments);
}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/Illuminate/Contracts/Auth/Access/Gate.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,20 @@ public function after(callable $callback);
/**
* Determine if all of the given abilities should be granted for the current user.
*
* @param iterable|string $abilities
* @param iterable|string $ability
* @param array|mixed $arguments
* @return bool
*/
public function allows($abilities, $arguments = []);
public function allows($ability, $arguments = []);

/**
* Determine if any of the given abilities should be denied for the current user.
*
* @param iterable|string $abilities
* @param iterable|string $ability
* @param array|mixed $arguments
* @return bool
*/
public function denies($abilities, $arguments = []);
public function denies($ability, $arguments = []);

/**
* Determine if all of the given abilities should be granted for the current user.
Expand Down

0 comments on commit e68a840

Please sign in to comment.