mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-11 16:40:40 +00:00
Update Share Link
This commit is contained in:
@ -78,11 +78,8 @@ def follow_corpus(corpus_id, token):
|
||||
options={'require': ['exp', 'iat', 'iss']}
|
||||
)
|
||||
except jwt.PyJWTError:
|
||||
abort(403)
|
||||
abort(410)
|
||||
# permission = payload.get('sub')
|
||||
expiration = payload.get('exp')
|
||||
if expiration < int(datetime.utcnow().timestamp()):
|
||||
abort(403)
|
||||
if not current_user.is_following_corpus(corpus):
|
||||
current_user.follow_corpus(corpus)
|
||||
db.session.commit()
|
||||
|
Reference in New Issue
Block a user