mirror of https://gitlab.com/tildes/tildes.git
Browse Source
Previously there was a specific is_admin boolean column. This commit changes to have a general permissions column which is stored in JSON, and currently should either be a single string or list of strings. These strings are used as the user's principals for the authorization system. So now, setting a user as admin would involve adding the string "admin" to their permissions column, instead of just setting is_admin to True. As part of this change, I also moved the MutableDict associations onto specific columns, instead of being attached to JSONB by default (since this new column won't always be a dict).merge-requests/29/head
Deimos
6 years ago
6 changed files with 61 additions and 15 deletions
Loading…
Reference in new issue