rDrama/files/routes
Snakes 6ad935e12a Permission flags UI visibility; start PERMS dict.
Original work started for WPD and LGB, who wish to restrict flags
visibility in the UI based on admin_level. To support this change and
upcoming changes, `const.PERMS: string -> int` was created.
Potentially targetting a future design where Permissions is a proper
business object integrated with the User model; however, for now just
looking toward getting admin_level magic numbers centralized.

This commit applies PERMS to: create_hole, flags visibility in UI,
flag removal in UI & backend. Flag visibility in Comment & Submission
json_raw methods is unaffected to avoid needing a user object to
build the JSON.
2022-07-06 23:45:33 -04:00
..
__init__.py Poll rework (#312) 2022-07-02 08:48:04 +02:00
admin.py compile regext outside of routes 2022-07-06 13:49:13 +02:00
awards.py Add badge for Checkmark award users. 2022-07-02 21:34:32 -04:00
chat.py reducing query volume, #2 2022-06-26 03:11:02 +02:00
comments.py messing with joins 2022-07-03 08:12:53 +02:00
discord.py reducing query volume, #2 2022-06-26 03:11:02 +02:00
errors.py kitchen sink commit, all over the place 2022-07-02 12:44:05 +02:00
feeds.py testing 2022-07-01 15:11:41 +02:00
front.py Fix frontlist failing on pin expiry. 2022-07-03 13:04:13 -04:00
giphy.py mn 2022-05-05 01:09:46 +02:00
login.py trying to fix WPD's issue 2022-07-06 12:56:39 +02:00
lottery.py catch invalid ticket quantity 500 error 2022-06-13 20:34:57 +02:00
oauth.py reducing query volume, #2 2022-06-26 03:11:02 +02:00
polls.py Revert "Revert "remove all joinedload bullshit I added"" 2022-07-06 13:08:11 +02:00
posts.py fix my vote being above OP's vote 2022-07-06 13:00:28 +02:00
reporting.py Permission flags UI visibility; start PERMS dict. 2022-07-06 23:45:33 -04:00
search.py compile regext outside of routes 2022-07-06 13:49:13 +02:00
settings.py Fix DMs improperly treating all users as blocked. 2022-07-03 13:55:25 -04:00
static.py messing with joins 2022-07-03 08:12:53 +02:00
subs.py OPs can now rehole their posts 2022-07-04 04:19:43 +02:00
users.py fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2244925?context=8#context 2022-07-04 06:07:51 +02:00
votes.py fix 500 errors 2022-07-02 08:51:19 +02:00