|
@@ -115,7 +115,7 @@ class RoleUtils {
|
|
|
if ((match = regex.exec(role)) !== null) {
|
|
if ((match = regex.exec(role)) !== null) {
|
|
|
const subject = match[2]
|
|
const subject = match[2]
|
|
|
const action = match[3]
|
|
const action = match[3]
|
|
|
- if(subject && action){
|
|
|
|
|
|
|
+ if(subject){
|
|
|
abilities.push({
|
|
abilities.push({
|
|
|
action: actionMap[action],
|
|
action: actionMap[action],
|
|
|
subject: subject.toLowerCase()
|
|
subject: subject.toLowerCase()
|