hyperstack-org / hyperstack-org/hyperstack

Incorrect documentation about server operations

Abierto
#267 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
538
Forks
41
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

On this page: https://docs.hyperstack.org/dsl-isomorphic/hyper-operation#server-operations
there is this example code snippet:
```
validate { raise Hyperstack::AccessViolation unless params.acting_user.admin? }
```
That doesn't seem to work properly. One working alternative is:
```
validate { params.acting_user.admin? }
```
Another alternative:
```
validate { params.acting_user.admin? || raise Hyperstack::AccessViolation }
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.