Fix login endpoint redirect
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import boto3
|
||||
import pymongo
|
||||
import urllib
|
||||
from datetime import datetime, date, timedelta
|
||||
from botocore.exceptions import ClientError
|
||||
from bson.objectid import ObjectId
|
||||
@@ -30,6 +31,7 @@ def view_inventory_view(item_id):
|
||||
if not item["inventory"].get("public"):
|
||||
return do_login()
|
||||
template = "inventory_view_public.html"
|
||||
redirect_url = urllib.parse.quote_plus(request.full_path)
|
||||
else:
|
||||
can_audit = "k-space:janitors" in user["groups"]
|
||||
can_edit = check_edit_permission(item_id)
|
||||
|
Reference in New Issue
Block a user