[COMPONENT][Feed] Restrict non-public feeds to logged in users

This commit is contained in:
2021-12-24 03:38:29 +00:00
parent 82e6e95b6a
commit de89cffc34
3 changed files with 5 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ class Feed extends Controller
*/
public function notifications(Request $request): array
{
$user = Common::user();
$user = Common::ensureLoggedIn();
$notes = DB::dql(<<<'EOF'
SELECT n FROM \App\Entity\Note AS n
WHERE n.id IN (