:id="'modalBio_' + uid"
type="checkbox"
)
- div.bio-div(
+ .bio-div(
role="dialog"
:data-checkbox="'modalBio_' + uid"
)
.card
div(v-if="st.user.id == uid")
- div.buttons
+ .buttons
button(@click="toggleEdit()")
| {{ st.tr[modeEdit ? "Cancel" : "Edit"] }}
button(
router.get("/users", access.ajax, (req,res) => {
const ids = req.query["ids"];
// NOTE: slightly too permissive RegExp
- if (ids.match(/^([0-9]+,?)+$/)) {
+ if (!!ids && !!ids.match(/^([0-9]+,?)+$/)) {
UserModel.getByIds(ids, (err, users) => {
res.json({ users: users });
});