Skip to content

Commit

Permalink
Merge pull request #519 from basho/bugfix/unknown-security-capability
Browse files Browse the repository at this point in the history
If the security capability is unknown, consider security off
  • Loading branch information
Vagabond committed Feb 5, 2014
2 parents 92f614f + 5346857 commit b69bfe3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/riak_core_security.erl
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ del_source(User, CIDR) ->


is_enabled() ->
case riak_core_capability:get({riak_core, security}) of
try riak_core_capability:get({riak_core, security}) of
true ->
case riak_core_metadata:get({<<"security">>, <<"status">>},
enabled) of
Expand All @@ -518,6 +518,9 @@ is_enabled() ->
end;
_ ->
false
catch
throw:{unknown_capability, {riak_core, security}} ->
false
end.

enable() ->
Expand Down

0 comments on commit b69bfe3

Please sign in to comment.