Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/Http/Controllers/GroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class GroupsController extends Controller
public function show($id)
{
$group = app('groups')->byIdOrFail($id);
abort_unless($group->hasListing(), 404);
abort_if($group->identifier === 'default', 404);
priv_check('GroupShow', $group)->ensureCan();

$currentMode = default_mode();
$users = $group->users()
Expand Down
2 changes: 1 addition & 1 deletion tests/Browser/SanityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ private static function createScaffolding()
]);

// factory for /g/*
self::$scaffolding['group'] = Group::first();
self::$scaffolding['group'] = Group::where('group_type', 1)->first();

// factory for comments
self::$scaffolding['comment'] = Comment::factory()->create([
Expand Down
Loading