summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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 ->