| summaryrefslogtreecommitdiff |
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2018-12-13 19:09:39 +0100 |
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2018-12-13 19:09:39 +0100 |
| commit | f5cbc0b753fb94785024ed81bb3738c10434bd61 (patch) | |
| tree | e60356a2dcda87533ac1d260d2859ddb5f6e9147 /src/ataxia_security.erl | |
| parent | 6e983617288abafcdcfd7fcf26fc246302a388f7 (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 97ed276..192171f 100644 --- a/src/ataxia_security.erl +++ b/src/ataxia_security.erl @@ -14,6 +14,7 @@ -export([can_access/2]). -export([janitor/0, any/0, admin/0, user_from_id/1]). +-export([unlocked/0]). %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% LOCAL FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -34,6 +35,9 @@ any () -> any. -spec admin () -> user(). admin () -> admin. +-spec unlocked () -> atom(). +unlocked () -> none. + -spec can_access (permission(), user()) -> boolean(). can_access (_, admin) -> true; can_access (any, _) -> true; |


