issues
search
SciCatProject
/
backend-v3
SciCat Data Catalogue Backend
https://scicatproject.github.io/documentation/
BSD 3-Clause "New" or "Revised" License
13
stars
17
forks
source link
Fix access groups
#688
Closed
fpotier
closed
2 years ago
fpotier
commented
2 years ago
Description
Fixes
#685
Fixes:
Check if
accessGroups
is an array before trying to use
concat()
. Falls back to empty array if
null
and throws an error if type is incorrect.
Tests included/Docs Updated?
[x] Included for each change/fix?
[x] Passing? (Merge will not be approved unless this is checked)
[ ] Docs updated?
[ ] New packages used/requires npm install?
[ ] Toggle added for new features?
Description
Fixes #685
Fixes:
accessGroups
is an array before trying to useconcat()
. Falls back to empty array ifnull
and throws an error if type is incorrect.Tests included/Docs Updated?