sharkapps 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8
1
+ 0.1.9
@@ -1,5 +1,5 @@
1
- <div id="flash" style="margin-top:10px">
2
- <div id="flash_notice">
1
+ <div id="flash" style="margin-top:10px;text-align:left;direction:ltr;">
2
+ <div id="flash_notice" style="direction:ltr;">
3
3
 
4
4
  <%= t('appforma.errors.not_auth1')%><br/><br/>
5
5
  <%= t('appforma.errors.not_auth2')%><br/><br/>
@@ -1,6 +1,6 @@
1
1
  <% if is_admin %>
2
2
  <div id="flash" style="margin-top:10px">
3
- <div id="flash_notice">
3
+ <div id="flash_notice" style="text-align:left;direction:ltr;">
4
4
  <strong><i>Note: This message is only visible to page administrators.</i></strong><br/><br/>
5
5
  <% if @account.approval_status == Subscription::UNAUTHORIZED%>
6
6
  You have installed this application without registering it with <%= link_to "Appforma", "http://www.appforma.com/", :target => "_blank"%>.
data/lib/sharkapps.rb CHANGED
@@ -104,14 +104,17 @@ 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
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
  #go by the facebook user ID and make an API call. might need to store it in the session
112
113
  sym = ("auth_admin_" + @account.fbid + "_" + current_facebook_user.id.to_s).to_sym
114
+ puts "symbol: #{sym}"
115
+ puts "symbol value: #{session[sym]}"
113
116
  need_check = session[sym].nil?
114
- if true #need_check
117
+ if need_check #need_check
115
118
  session[sym] = AppformaAccount.check_admin_authorized(@account, current_facebook_user.id)
116
119
  end
117
120
  return session[sym]
data/sharkapps.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sharkapps}
8
- s.version = "0.1.8"
8
+ s.version = "0.1.9"
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"]
12
- s.date = %q{2012-02-07}
12
+ s.date = %q{2012-02-08}
13
13
  s.description = %q{integration utilities with the shark apps framework}
14
14
  s.email = %q{ekedem@gmail.com}
15
15
  s.extra_rdoc_files = [
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: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 8
9
+ - 9
10
10
  segments_generated: true
11
- version: 0.1.8
11
+ version: 0.1.9
12
12
  platform: ruby
13
13
  authors:
14
14
  - Eyal Kedem
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-02-07 00:00:00 +02:00
19
+ date: 2012-02-08 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency