Skip to content

Commit

Permalink
Verificando se é admin para poder editar.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoborgesmachado committed Dec 19, 2023
1 parent 01dcf36 commit f56832f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/pages/ListagemQuestoes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,16 @@ function ListagemQuestoes(){
<tr key={item.id}>
<td className='option'>
<a>
<h4 onClick={() => editaQuestao(item.id)}>
✏️{item.numeroQuestao}
</h4>
{
localStorage.getItem(Config.ADMIN) === '1' ?
<h4 onClick={() => editaQuestao(item.id)}>
✏️{item.numeroQuestao}
</h4>
:
<h4 onClick={() => abreQuestao(item.id)}>
✏️{item.numeroQuestao}
</h4>
}
</a>
</td>
<td>
Expand Down

0 comments on commit f56832f

Please sign in to comment.