Updated existing image tests to reflect changes

- Also added some new tests
This commit is contained in:
Dan Brown
2019-05-04 18:11:00 +01:00
parent 79f6dc00a3
commit 8c190324ac
7 changed files with 146 additions and 92 deletions

View File

@ -103,7 +103,7 @@ class ImageController extends Controller
*/
protected function checkImagePermission(Image $image)
{
if ($image->type !== 'drawio' || $image->type !== 'gallery') {
if ($image->type !== 'drawio' && $image->type !== 'gallery') {
$this->showPermissionError();
}

View File

@ -98,7 +98,6 @@ class UserController extends Controller
$this->userRepo->setUserRoles($user, $roles);
}
// TODO - Check this uses new profile assignment
$this->userRepo->downloadAndAssignUserAvatar($user);
return redirect('/settings/users');