From b27000f29f9e0cebdea299e3928f17768f28df4a Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Sat, 24 Feb 2018 21:50:14 +0200 Subject: [PATCH] fix getting admin status from store --- web/app/components/comment/comment.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/comment/comment.jsx b/web/app/components/comment/comment.jsx index aee32246..06da3f68 100644 --- a/web/app/components/comment/comment.jsx +++ b/web/app/components/comment/comment.jsx @@ -140,7 +140,7 @@ export default class Comment extends Component { render(props, { userBlocked, pinned, score, scoreIncreased, scoreDecreased, isInputVisible }) { const { data, mix, mods = {} } = props; - const isAdmin = !store.get('user').admin; + const isAdmin = store.get('user').admin; const time = new Date(data.time); // TODO: which format for datetime should we choose?