mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 09:05:43 +00:00
fix sensitive access condition and disable on direct request #37
This commit is contained in:
parent
b96ed08694
commit
77616c3c8a
1 changed files with 4 additions and 1 deletions
|
|
@ -57,10 +57,13 @@ class TorrentController extends AbstractController
|
|||
}
|
||||
|
||||
// Sensitive filter
|
||||
if (!$user->isModerator() && $user->isSensitive())
|
||||
// @TODO add blur effect or sensitive notice instead of 404 on direct request #37
|
||||
/*
|
||||
if (!$user->isModerator() && $user->isSensitive() && $torrent->isSensitive())
|
||||
{
|
||||
throw $this->createNotFoundException();
|
||||
}
|
||||
*/
|
||||
|
||||
// Access filter
|
||||
if (!$user->isModerator() && $user->getId() != $torrent->getUserId() &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue