mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-06 02:16:45 +08:00
Updated existing image tests to reflect changes
- Also added some new tests
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user