X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/3b7d223b0c7f4ebc9f4b9d7ce4efb2f5fa6ef4ed..refs/pull/846/head:/app/Role.php diff --git a/app/Role.php b/app/Role.php index bf9685ee2..e86854e79 100644 --- a/app/Role.php +++ b/app/Role.php @@ -1,6 +1,5 @@ getRelationValue('permissions'); foreach ($permissions as $permission) { - if ($permission->getRawAttribute('name') === $permissionName) return true; + if ($permission->getRawAttribute('name') === $permissionName) { + return true; + } } return false; } @@ -91,5 +92,4 @@ class Role extends Model { return static::where('hidden', '=', false)->orderBy('name')->get(); } - }