about summary refs log tree commit diff
path: root/app/javascript/flavours
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-08-31 12:10:38 +0200
committerThibG <thib@sitedethib.com>2018-09-03 18:19:11 +0200
commit6ad7dac79130bb7b68ccb703739167a737ed6b49 (patch)
treeaf0f04b3756cd7da3497469fcf46632184efbe57 /app/javascript/flavours
parentb3fdd166e819819a7a8f7cfa540986af047c05fa (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.js1
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;