sharkapps 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/sharkapps.rb +2 -1
  3. data/sharkapps.gemspec +1 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.12
1
+ 0.1.13
data/lib/sharkapps.rb CHANGED
@@ -108,7 +108,7 @@ module SharkApps
108
108
  if fb_load_facebook_params['page']
109
109
  fb_load_facebook_params['page']['admin']
110
110
  else
111
- return false if current_facebook_user.nil?
111
+
112
112
  #go by the facebook user ID and make an API call. might need to store it in the session
113
113
  sym = ("auth_admin_" + @account.fbid).to_sym
114
114
  puts "symbol: #{sym}"
@@ -117,6 +117,7 @@ module SharkApps
117
117
  need_check = (session[sym].nil? or session[sym] == false)
118
118
  puts "need check: = #{need_check}"
119
119
  if need_check #need_check
120
+ return false if current_facebook_user.nil?
120
121
  session[sym] = AppformaAccount.check_admin_authorized(@account, current_facebook_user.id)
121
122
  end
122
123
  return session[sym]
data/sharkapps.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sharkapps}
8
- s.version = "0.1.12"
8
+ s.version = "0.1.13"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Eyal Kedem"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sharkapps
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 12
9
+ - 13
10
10
  segments_generated: true
11
- version: 0.1.12
11
+ version: 0.1.13
12
12
  platform: ruby
13
13
  authors:
14
14
  - Eyal Kedem