phccorehelpers 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02f6464ce8d570e909954eef3db20fce40ccf0e40ac149f960d298c5b48adad0
4
- data.tar.gz: 86020d0f71566a261408a10df09f40a798a1b93d3b9a4c6d2808e93c24e864bc
3
+ metadata.gz: 5d4306e9c374c813de8af47e7a41cf1e358106c82cd9e934a77d2f8cc55c89c8
4
+ data.tar.gz: 0e8762e2c8dd9c0677f605f064e8060671573d8aa1b628794e883f3aa51076da
5
5
  SHA512:
6
- metadata.gz: f9b99bd0e0ca89897c94ca08f3009e95b340b2d5e6983bc291d605727d0930346ab0fa85f6b093b61be187e1caa1118eada60c5fff6891c2016af067b6d06219
7
- data.tar.gz: 2c1bcd54b35c3592e86cf5bd3b0899e9337c9b7d7df81a410fe3d8fe9a114424d3aa48a09521f5580c67b1223a27fdc41b2cdb1811d60135239144b0c0cbd768
6
+ metadata.gz: 7dbbcda61625d6d6c3a516b8412094b3521e8bb39cdd7e4e7f183255423d3f8f297fd61529424b3818551cacab2adcf7dc92ff4d4fe0d58686d4dfb4f197b57c
7
+ data.tar.gz: 2862173e4bf434f1e4b69f00266793212e5554c207c3ffe0da6ecfbbe1fc451bf223ecb4495258b0dbf369c28f50c961818906d5231a907657e936f14a67c2e1
@@ -3,11 +3,15 @@ module Phccorehelpers
3
3
 
4
4
  # PHCAccontsPro - Add Admin Only Filter
5
5
  def phc_accounts_pro_admin_only
6
- unless current_user.admin
6
+ unless current_user && current_user.admin
7
7
  redirect_to main_app.root_path, :alert => "Sorry Access denied."
8
8
  end
9
9
  end
10
-
10
+
11
+ # PHCAccountspro - Who Dunnit
12
+ def user_for_paper_trail
13
+ current_user ? current_user.username : 'Public user'
14
+ end
11
15
 
12
16
  # PHCMembersPro - Grab Member Information
13
17
  def phcmemberspro_get_member_profile_info
@@ -1,3 +1,3 @@
1
1
  module Phccorehelpers
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phccorehelpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts