Commit 77d10ea5 authored by A. Koch's avatar A. Koch

fix acl role check

parent 0d9e8e97
......@@ -35,7 +35,7 @@ class Service extends TinyEmitter {
if (req.user && entry.author && entry.author.id === user) allowed = true
else {
try {
allowed = await this._acl.isAllowed('public', entry.uuid, 'get')
allowed = await this._acl.areAnyRolesAllowed(['public'], entry.uuid, ['get'])
}
catch (err) {
this._logger.error(`ACL error: ${err.message}`)
......@@ -53,7 +53,7 @@ class Service extends TinyEmitter {
if (req.user && result.author && result.author.id === req.user.uuid) allowed = true
else {
try {
allowed = await this._acl.isAllowed('public', result.uuid, 'get')
allowed = await this._acl.areAnyRolesAllowed(['public'], result.uuid, ['get'])
}
catch (err) {
this._logger.error(`ACL error: ${err.message}`)
......
Markdown is supported
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