summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-03-07 10:33:01 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-03-08 17:13:51 +0100
commitf1478ea4401fa28d4dc358aca9d0513853190d66 (patch)
treecbf82750bf82e8e58d59e3e5c650f0e1048c6530 /apps/workflowengine
parentd435c91fda91caae89f43c099037d6473cc55657 (diff)
downloadnextcloud-server-f1478ea4401fa28d4dc358aca9d0513853190d66.tar.gz
nextcloud-server-f1478ea4401fa28d4dc358aca9d0513853190d66.zip
No ES6 :(
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/workflowengine')
-rw-r--r--apps/workflowengine/js/usergroupmembershipplugin.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/workflowengine/js/usergroupmembershipplugin.js b/apps/workflowengine/js/usergroupmembershipplugin.js
index b89087bea06..53f35fedf2d 100644
--- a/apps/workflowengine/js/usergroupmembershipplugin.js
+++ b/apps/workflowengine/js/usergroupmembershipplugin.js
@@ -48,7 +48,9 @@
if (groupId && groups.length > 0) {
callback({
id: groupId,
- displayname: groups.find(group =>group.id === groupId).displayname
+ displayname: groups.find(function (group) {
+ return group.id === groupId;
+ }).displayname
});
} else if (groupId) {
callback({