get-shout-data-fix-3
This commit is contained in:
parent
7370eec203
commit
b88d981891
|
@ -88,7 +88,7 @@ const server = Server.configure({
|
||||||
const { authors, created_by } = data.get_shout;
|
const { authors, created_by } = data.get_shout;
|
||||||
if (authors.some(author => author.id === author_id) || created_by === author_id) {
|
if (authors.some(author => author.id === author_id) || created_by === author_id) {
|
||||||
return resolve({
|
return resolve({
|
||||||
id: user_id,
|
id: user,
|
||||||
author: author_id,
|
author: author_id,
|
||||||
roles: Array.isArray(roles) ? roles : roles.split(','),
|
roles: Array.isArray(roles) ? roles : roles.split(','),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user