snr-authorization-authvoter
v0.0.1
Published
This is the voter for snr-authorizationmanager, that allow access for authenticated users
Downloads
2
Maintainers
Readme
snr-authorization-authvoter
This is probably simplest voter for snr-authorizationmanager. It just check if user is authorized (user variable is not falsey).
You can provede an Array
of resources that you want to authorize
var authMgr = require('snr-authorizationmanager');
var authVoter = require('snr-authorization-authvoter');
authMgr.addVoter(authVoter([
'route:/admin'
]));