| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-01-05 20:13:44 +0100 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-01-05 20:13:44 +0100 |
| commit | c29627d6826dba1be9985f9a998bea420d842aae (patch) | |
| tree | 7678c6dc4e44469fe9850e0791bfd89e0f6046db /src/ataxia_security.erl | |
| parent | 76256398ba61e47f71098b1aa6ea511473b93e44 (diff) | |
Implements most of ataxia_server's functions.
Diffstat (limited to 'src/ataxia_security.erl')
| -rw-r--r-- | src/ataxia_security.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ataxia_security.erl b/src/ataxia_security.erl index e51ab3c..b1ec662 100644 --- a/src/ataxia_security.erl +++ b/src/ataxia_security.erl @@ -52,8 +52,8 @@ any () -> any. -spec admin () -> user(). admin () -> admin. --spec can_access (permission(), user()) -> boolean(). -can_access (Permission, User) -> +-spec can_access (user(), permission()) -> boolean(). +can_access (User, Permission) -> case User of admin -> true; janitor -> ordsets:is_element(User, Permission); |


