0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-22 23:59:42 +00:00

Ran phpcbf

This commit is contained in:
Dan Brown 2019-05-05 14:54:37 +01:00
parent adc866cb3d
commit 3f83c548f8
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
11 changed files with 11 additions and 20 deletions
app/Http/Controllers

View file

@ -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;
});
}