sharkapps 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/sharkapps/account.rb +1 -1
- data/lib/sharkapps.rb +1 -1
- data/sharkapps.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
data/lib/sharkapps/account.rb
CHANGED
@@ -23,7 +23,7 @@ class AppformaAccount < ActiveResource::Base
|
|
23
23
|
def self.check_admin_authorized(cur_account, userid=nil)
|
24
24
|
return false if userid == nil
|
25
25
|
a = self.find("#{cur_account.fbid}-#{cur_account.acc_hash}-#{SharkApps.app_id}")
|
26
|
-
c_array = a.collaborators.select {|c| c.fbid == userid}
|
26
|
+
c_array = a.collaborators.select {|c| c.fbid.to_s == userid.to_s}
|
27
27
|
return c_array.empty? == false
|
28
28
|
end
|
29
29
|
end
|
data/lib/sharkapps.rb
CHANGED
@@ -109,7 +109,7 @@ module SharkApps
|
|
109
109
|
fb_load_facebook_params['page']['admin']
|
110
110
|
else
|
111
111
|
#go by the facebook user ID and make an API call. might need to store it in the session
|
112
|
-
sym = ("auth_admin_" + @account.fbid + "_" + current_facebook_user.id).to_sym
|
112
|
+
sym = ("auth_admin_" + @account.fbid + "_" + current_facebook_user.id.to_s).to_sym
|
113
113
|
need_check = session[sym].nil?
|
114
114
|
if true #need_check
|
115
115
|
session[sym] = AppformaAccount.check_admin_authorized(@account, current_facebook_user.id)
|
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: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
9
|
+
- 8
|
10
10
|
segments_generated: true
|
11
|
-
version: 0.1.
|
11
|
+
version: 0.1.8
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Eyal Kedem
|