Skip to content

Commit a81dbdc

Browse files
author
Tom Kirkpatrick
committed
sdfsfd
1 parent be6cde2 commit a81dbdc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module.exports = class AccessUtils {
1919
'$group:member'
2020
]
2121
});
22+
// Default the foreignKey to the group model name + Id.
2223
this.options.foreignKey = this.options.foreignKey || `${this.options.groupModel.toLowerCase()}Id`;
2324

2425
// Validate the format of options.accessGroups ($group:[role]).

0 commit comments

Comments
 (0)