Skip to content
Snippets Groups Projects
Commit 0fe560dd authored by Quentin Bramas's avatar Quentin Bramas
Browse files

allow admin to create a qcm

parent 5a877418
Branches
Tags
No related merge requests found
Pipeline #336978 passed with stages
in 58 seconds
......@@ -71,7 +71,7 @@ export default () => (state, actions) => <div class="container" style={{ maxWidt
{' '}<FromStorage />
</div>
<hr class="my-4" />
{state.showCreate &&
{state.showCreate || (state.user && state.user.role == 'admin') &&
<div class="form-group">
<button type="button" class="btn btn-secondary" onclick={actions.create}>Créer</button>
</div>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment