UNPKG
scandium-express
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
ACL middleware for express
github.com/sgarza/scandium-express
sgarza/scandium-express
scandium-express
/
lib
/
Role.js
18 lines
(13 loc)
•
239 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Sc
.
Role
=
Class
(
Sc
,
'Role'
)({ prototype : { id :
null
, init :
function
(
id
) {
if
(!id) {
throw
new
Error
(
'Invalid role id'
); }
this
.
id
= id;
return
this
; } } });
module
.
exports
=
Sc
.
Role
;