user_mgmt 0.5.6 → 0.5.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.
@@ -3,14 +3,13 @@ module UserMgmt
3
3
 
4
4
  def user_logged_in?
5
5
  # return false if cookies[:user_session_id] == nil
6
- # status = user_info(cookies[:user_session_id])[:status]
7
- # if status == 200
8
- # return true
9
- # else
10
- # cookies.delete(:user_session_id)
11
- # return false
12
- # end
13
- true
6
+ status = user_info(cookies[:user_session_id])[:status]
7
+ if status == 200
8
+ return true
9
+ else
10
+ # cookies.delete(:user_session_id)
11
+ return false
12
+ end
14
13
  end
15
14
 
16
15
  def current_user
@@ -1,3 +1,3 @@
1
1
  module UserMgmt
2
- VERSION = "0.5.6"
2
+ VERSION = "0.5.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: user_mgmt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: