diff options
author | mr <mr@mrautenberg.de> | 2010-01-25 09:29:21 +0100 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2010-01-25 09:29:21 +0100 |
commit | a165822a7bd663916cff9484a76e6bb6bcf9a353 (patch) | |
tree | 4f33445db772b87ccead41b75e686be144ad3bb1 /lib/environment.rb | |
parent | 4c2ac1a90b686b0e4bc361403770e0756bbfbdf9 (diff) |
internal authorization with first user of users.yaml
Diffstat (limited to 'lib/environment.rb')
-rw-r--r-- | lib/environment.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/environment.rb b/lib/environment.rb index f7513c5..ee36366 100644 --- a/lib/environment.rb +++ b/lib/environment.rb @@ -25,6 +25,10 @@ else puts "Please edit #{user_file} and restart your application." exit end +if @@users.length < 1 or !@@users + puts "Please edit #{user_file} and restart your application." + exit +end # RDF namespaces RDF = Redland::Namespace.new 'http://www.w3.org/1999/02/22-rdf-syntax-ns#' |