| summaryrefslogtreecommitdiff | 
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-01-16 00:06:23 +0100 | 
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-01-16 00:06:23 +0100 | 
| commit | e12544d7b9e58f26e66aa63bd61fc8c446c71a18 (patch) | |
| tree | 5244c0930d9ce66853da99380bb39f2a25ff1153 /src/ataxia_security.erl | |
| parent | 64a89dc3909ad147ae0d811cb7d1ca2cca31d09b (diff) | |
...
Diffstat (limited to 'src/ataxia_security.erl')
| -rw-r--r-- | src/ataxia_security.erl | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/src/ataxia_security.erl b/src/ataxia_security.erl index 4088cd4..1ad1e88 100644 --- a/src/ataxia_security.erl +++ b/src/ataxia_security.erl @@ -20,6 +20,7 @@        add_access/2,        remove_access/2,        allow_only/1, +      allow/1,        allow_any/0,        allow_none/0     ] @@ -45,6 +46,9 @@ remove_access (User, Permission) ->  allow_only (User) ->     ordsets:add_element(User, ordsets:new()). +-spec allow (list(user())) -> permission(). +allow (Users) -> ordsets:from_list(Users). +  -spec allow_any () -> permission().  allow_any () ->     ordsets:add_element(any(), ordsets:new()). | 


