Skip to content

Commit

Permalink
Merge pull request #1965 from Sefaria/only-staff-add
Browse files Browse the repository at this point in the history
fix: only staff member can add index or edit text info.
  • Loading branch information
YishaiGlasner committed Jul 15, 2024
2 parents e6d7f1b + 910289e commit e2cd74d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reader/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,7 @@ def edit_text(request, ref=None, lang=None, version=None):
})

@ensure_csrf_cookie
@staff_member_required
@sanitize_get_params
def edit_text_info(request, title=None, new_title=None):
"""
Expand Down

0 comments on commit e2cd74d

Please sign in to comment.