summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-12-15 15:04:51 +0100
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-12-15 15:04:51 +0100
commite8134a4e64a215a6f76cf24c52d4f67d3bfdcb71 (patch)
treeaee45dc3045ff1439f1f78e62f0adf1d672db93e /src/ataxia_lock.erl
parent0d7af0558cefec3041cb31e58afb09871c28d747 (diff)
...
Diffstat (limited to 'src/ataxia_lock.erl')
-rw-r--r--src/ataxia_lock.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ataxia_lock.erl b/src/ataxia_lock.erl
index b6ce2c6..eb5176a 100644
--- a/src/ataxia_lock.erl
+++ b/src/ataxia_lock.erl
@@ -22,7 +22,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-export_type([type/0]).
--export([locked/2, unlocked/0, allows/2]).
+-export([locked/2, unlocked/0, can_access/2]).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% LOCAL FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -49,8 +49,8 @@ unlocked () ->
time = ataxia_time:now()
}.
--spec allows (ataxia_security:user(), type()) -> boolean().
-allows (User, Lock) ->
+-spec can_access (ataxia_security:user(), type()) -> boolean().
+can_access (User, Lock) ->
case Lock#lock.status of
none -> true;
locked ->