Skip to content

Commit 881e117

Browse files
author
Jon Wiersma
committed
Merge branch 'publicmethods'
2 parents 336b50a + 55b9f23 commit 881e117

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Bican/Roles/Contracts/HasRoleAndPermission.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ public function canAll($permission);
128128
*/
129129
public function canOne($permission);
130130

131+
/**
132+
* Check if the user has a permission.
133+
*
134+
* @param int|string $permission
135+
* @return bool
136+
*/
137+
public function hasPermission($permission);
138+
131139
/**
132140
* Check if the user is allowed to manipulate with entity.
133141
*

0 commit comments

Comments
 (0)