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

Moved permission updating to its own tool

And added support for owner changing.
This commit is contained in:
Dan Brown
2021-01-01 17:49:48 +00:00
parent da9083bf1f
commit 99b14621f9
11 changed files with 82 additions and 78 deletions

View File

@ -19,7 +19,7 @@ class UserSearchController extends Controller
->take(20);
if (!empty($search)) {
$query->where(function(Builder $query) use ($search) {
$query->where(function (Builder $query) use ($search) {
$query->where('email', 'like', '%' . $search . '%')
->orWhere('name', 'like', '%' . $search . '%');
});