diff options
Diffstat (limited to 'server/szurubooru/api/post_api.py')
| -rw-r--r-- | server/szurubooru/api/post_api.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/szurubooru/api/post_api.py b/server/szurubooru/api/post_api.py index 4e89f54..7ede06c 100644 --- a/server/szurubooru/api/post_api.py +++ b/server/szurubooru/api/post_api.py @@ -117,7 +117,9 @@ def create_snapshots_for_post( def get_post(ctx: rest.Context, params: Dict[str, str]) -> rest.Response: auth.verify_privilege(ctx.user, "posts:view") post = _get_post(params) - if post.safety == model.Post.SAFETY_UNSAFE: + if post.safety == model.Post.SAFETY_SKETCHY: + auth.verify_privilege(ctx.user, "posts:view:sketchy") + elif post.safety == model.Post.SAFETY_UNSAFE: auth.verify_privilege(ctx.user, "posts:view:unsafe") return _serialize_post(ctx, post) |