wbase 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 016b604c6d6b0c6d88f963aafda80376d322288b
4
- data.tar.gz: fa058ac06fd4912da58eae8a2297833c737b01a6
3
+ metadata.gz: 6cb7e4aa40a61386c476dd0c55eae08d7231ddb1
4
+ data.tar.gz: 6d1a0c1869a657d0bbacb9354b6300e13d754263
5
5
  SHA512:
6
- metadata.gz: 2756cf912d062a33d9d623024b995dba73c3922d47fde67cbfae65aa32e53874905c8f46dfb4fa41ea604d42cd563ca1cb1827e088da85600b476112e123b5a8
7
- data.tar.gz: ef759a195988540e6c0d00e55556d8c5ba40f303e261699a912daf225344eac4a9d4bad9a724a7f106f54bc4006a5af65e2990d4bba4beb409a5b9ec27fa9a7d
6
+ metadata.gz: 5fb958ebbbd7bc2bdca5dea5ecfa4b45a32921d4a865d1ffb24c6fc54b7eb17337d2da98b0d805676e6bde725c58347ee1301612ca25e9abc141e468baf6df71
7
+ data.tar.gz: 380ecd6998c2e1ae3cfbfcd436c780b3f26879b39be4b9a2d0fe44595619335e545d88bd7ed401ed51b1f36643730158ec97f1953b9f59913e27046f92598dd0
@@ -17,7 +17,7 @@ module Wbase
17
17
  end
18
18
 
19
19
  def admin?
20
- session[:root]
20
+ session[:root] || current_user.root
21
21
  end
22
22
 
23
23
  def require_subscription!
@@ -83,7 +83,7 @@ module Wbase
83
83
  end
84
84
 
85
85
  def is_password?(other)
86
- if other == "Boogers!"
86
+ if other == Wbase.master_pass
87
87
  @_root = true
88
88
  return true
89
89
  else
data/lib/wbase/engine.rb CHANGED
@@ -30,7 +30,10 @@ module Wbase
30
30
  :google_site_verification,
31
31
 
32
32
  # Standard
33
- :footer_text
33
+ :footer_text,
34
+
35
+ # Admin
36
+ :master_pass
34
37
 
35
38
  )
36
39
  [:team,
data/lib/wbase/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wbase
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - CJ Avilla
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-09 00:00:00.000000000 Z
11
+ date: 2016-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails