sharkapps 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/sharkapps.rb +2 -1
- data/sharkapps.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.7
|
data/lib/sharkapps.rb
CHANGED
|
@@ -104,13 +104,14 @@ module SharkApps
|
|
|
104
104
|
|
|
105
105
|
def is_admin
|
|
106
106
|
return true if SharkApps.debug_mode
|
|
107
|
+
return false if current_facebook_user.nil?
|
|
107
108
|
if fb_load_facebook_params['page']
|
|
108
109
|
fb_load_facebook_params['page']['admin']
|
|
109
110
|
else
|
|
110
111
|
#go by the facebook user ID and make an API call. might need to store it in the session
|
|
111
112
|
sym = ("auth_admin_" + @account.fbid + "_" + current_facebook_user.id).to_sym
|
|
112
113
|
need_check = session[sym].nil?
|
|
113
|
-
if
|
|
114
|
+
if true #need_check
|
|
114
115
|
session[sym] = AppformaAccount.check_admin_authorized(@account, current_facebook_user.id)
|
|
115
116
|
end
|
|
116
117
|
return session[sym]
|
data/sharkapps.gemspec
CHANGED
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:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
9
|
+
- 7
|
|
10
10
|
segments_generated: true
|
|
11
|
-
version: 0.1.
|
|
11
|
+
version: 0.1.7
|
|
12
12
|
platform: ruby
|
|
13
13
|
authors:
|
|
14
14
|
- Eyal Kedem
|