1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Applied latest StyleCI changes

This commit is contained in:
Dan Brown
2021-12-15 13:49:20 +00:00
parent e43f679e62
commit 73a37b3cd9
4 changed files with 8 additions and 10 deletions

View File

@ -61,7 +61,7 @@ class SearchApiController extends ApiController
$result->setAttribute('type', $result->getType());
$result->setAttribute('url', $result->getUrl());
$result->setAttribute('preview_html', [
'name' => (string) $result->getAttribute('preview_name'),
'name' => (string) $result->getAttribute('preview_name'),
'content' => (string) $result->getAttribute('preview_content'),
]);
}

View File

@ -14,7 +14,7 @@ class UserSearchController extends Controller
public function forSelect(Request $request)
{
$hasPermission = signedInUser() && (
userCan('users-manage')
userCan('users-manage')
|| userCan('restrictions-manage-own')
|| userCan('restrictions-manage-all')
);