| summaryrefslogtreecommitdiff | 
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2019-01-04 19:07:34 +0100 | 
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2019-01-04 19:07:34 +0100 | 
| commit | 76256398ba61e47f71098b1aa6ea511473b93e44 (patch) | |
| tree | 4fbb34d2665cd08e7629f5727e53b2b2211bc468 /src/ataxia_security.erl | |
| parent | 3f15009661717ac99149656ac93308a29494b983 (diff) | |
...
Diffstat (limited to 'src/ataxia_security.erl')
| -rw-r--r-- | src/ataxia_security.erl | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/src/ataxia_security.erl b/src/ataxia_security.erl index 27f0540..e51ab3c 100644 --- a/src/ataxia_security.erl +++ b/src/ataxia_security.erl @@ -14,7 +14,7 @@  -export([janitor/0, any/0, admin/0, user_from_id/1]). --export([add_access/2, remove_access/2, allow_only/1]). +-export([add_access/2, remove_access/2, allow_only/1, allow_any/0]).  -export([can_access/2]).  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -36,6 +36,10 @@ remove_access (User, Permission) ->  allow_only (User) ->     ordsets:add_element(User, ordsets:new()). +-spec allow_any () -> permission(). +allow_any () -> +   ordsets:add_element(any(), ordsets:new()). +  -spec user_from_id (any()) -> user().  user_from_id (ID) -> {user, ID}. | 


