diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-08-31 12:10:38 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-09-03 18:19:11 +0200 |
commit | 6ad7dac79130bb7b68ccb703739167a737ed6b49 (patch) | |
tree | af0f04b3756cd7da3497469fcf46632184efbe57 /app/javascript/flavours | |
parent | b3fdd166e819819a7a8f7cfa540986af047c05fa (diff) |
Let the front-end know the current account is a moderator
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r-- | app/javascript/flavours/glitch/util/initial_state.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/util/initial_state.js b/app/javascript/flavours/glitch/util/initial_state.js index 236ea1c3a..fdf004527 100644 --- a/app/javascript/flavours/glitch/util/initial_state.js +++ b/app/javascript/flavours/glitch/util/initial_state.js @@ -21,5 +21,6 @@ export const deleteModal = getMeta('delete_modal'); export const me = getMeta('me'); export const searchEnabled = getMeta('search_enabled'); export const maxChars = (initialState && initialState.max_toot_chars) || 500; +export const isStaff = getMeta('is_staff'); export default initialState; |