Skip to content

Commit

Permalink
Added YesAuthorityModelTrait with ifHasAccess method to retrieve only…
Browse files Browse the repository at this point in the history
… allowed items from database
  • Loading branch information
vinodraut committed Jun 11, 2018
1 parent 09e1b12 commit d5e267c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/YesAuthorityModelTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ trait YesAuthorityModelTrait
*
* @since 11 JUN 2018
*------------------------------------------------------------------------ */
public function scopeIfPermitted($query, string $permission, string $table = '', string $column = '')
public function scopeIfHasAccess($query, string $permission, string $table = '', string $column = '')
{
$tableName = '';

Expand Down

0 comments on commit d5e267c

Please sign in to comment.