mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-22 23:59:42 +00:00
Ran phpcbf
This commit is contained in:
parent
adc866cb3d
commit
3f83c548f8
11 changed files with 11 additions and 20 deletions
app/Http/Controllers
|
@ -132,7 +132,7 @@ abstract class Controller extends BaseController
|
|||
*/
|
||||
protected function checkPermissionOrCurrentUser(string $permissionName, int $userId)
|
||||
{
|
||||
return $this->checkPermissionOr($permissionName, function() use ($userId) {
|
||||
return $this->checkPermissionOr($permissionName, function () use ($userId) {
|
||||
return $userId === $this->currentUser->id;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue