summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ataxia_security.erl')
-rw-r--r--src/ataxia_security.erl4
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;