Allowing '*'
for *Roles
, *Actions
and *Resources
on IAccessInfo
grants, a much needed feature (see https://github.com/onury/accesscontrol/issues/58)!
It is very powerful, but it can open security holes, so use with caution!
Using it you can define 'GOD'
-like Roles:
// "GOD" can do any *Action on any *Resource!
{
role: 'GOD',
resource: '*',
action: '*:any'
}
This will actually grant GOD to any known Action against any known Resource.
Another scenario is to allow every *Role
to access a particular Resource and/or Action:
// Any *Role can "look" any "openToAllResource"
{
role: '*',
resource: 'openToAllResource',
action: 'look:any',
}
You can of course use any combination, even '*'
for permit all :-)