We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 876521a commit ac6a9b4Copy full SHA for ac6a9b4
lib/index.js
@@ -48,7 +48,7 @@ init = function(target) {
48
}
49
if (key !== undefined) {
50
var attr = target.rawAttributes[key];
51
- if (!attr || !attr.roles || attr.roles && attr.roles[options.role] && attr.roles[options.role].get) {
+ if (!attr || !attr.roles || attr.roles && (!options.role || (attr.roles[options.role] && attr.roles[options.role].get))) {
52
return $get.call(this, key, options);
53
} else {
54
return undefined;
0 commit comments