0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-21 23:38:39 +00:00

Fixed bug causing permission error on save and fixed non-gallery image save

This commit is contained in:
Dan Brown 2016-03-13 15:37:46 +00:00
parent 4656c12f6d
commit 491f73e0cd
2 changed files with 4 additions and 3 deletions
app/Http/Controllers

View file

@ -164,7 +164,9 @@ class UserController extends Controller
$user->save();
session()->flash('success', 'User successfully updated');
return redirect('/settings/users');
$redirectUrl = userCan('users-manage') ? '/settings/users' : '/settings/users/' . $user->id;
return redirect($redirectUrl);
}
/**