diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-12-03 00:29:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-03 00:29:12 +0300 |
commit | e139ccc66c10fba9b39e30d813e14c47b48b0baa (patch) | |
tree | e63ea8bf973636d01bc9ccc3bb023195fa602e8a /apps/systemtags | |
parent | 41b6052cb747a5c6354687d0dcf718582e490d27 (diff) | |
parent | bf7c9aa58cec0f6d67f64394d37f2f71e4c1e44c (diff) |
Merge pull request #30024 from nextcloud/techdebt/noid/list-php-are-only-invokable-via-controllers
list.php files are only invoked via ViewController and APIController
Diffstat (limited to 'apps/systemtags')
-rw-r--r-- | apps/systemtags/list.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/apps/systemtags/list.php b/apps/systemtags/list.php index d7ba2c9eed9..b5bbf223f29 100644 --- a/apps/systemtags/list.php +++ b/apps/systemtags/list.php @@ -20,23 +20,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ -// WARNING: this should be moved to proper AppFramework handling -// Check if we are a user -if (!\OC::$server->getUserSession()->isLoggedIn()) { - header('Location: ' . \OC::$server->getURLGenerator()->linkToRoute( - 'core.login.showLoginForm', - [ - 'redirect_url' => \OC::$server->getRequest()->getRequestUri(), - ] - ) - ); - exit(); -} -// Redirect to 2FA challenge selection if 2FA challenge was not solved yet -if (\OC::$server->getTwoFactorAuthManager()->needsSecondFactor(\OC::$server->getUserSession()->getUser())) { - header('Location: ' . \OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.selectChallenge')); - exit(); -} $tmpl = new OCP\Template('systemtags', 'list', ''); $tmpl->printPage(); |