caboose-cms 0.9.92 → 0.9.93

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
  SHA1:
3
- metadata.gz: 0bd5921a0b3a1a8acbb7e41d2fce3d24cc234e70
4
- data.tar.gz: 204127fda2e77dff5116719b410bb29dddfe0449
3
+ metadata.gz: 42e8ec3cf94818a94931ec495a53466889ddf35f
4
+ data.tar.gz: 8cc33bf2023140a4a3040de6689fcebf8d31b4ed
5
5
  SHA512:
6
- metadata.gz: 1c5246314436fcbf00a953b519f129046130bb35e3afcd1cba49fe526acdfb6f63f84498e87a1e71124cb56800a27ad6bf431f456c19f1763ede4cdd5d7c3679
7
- data.tar.gz: 6d334adb147db7bfa8552f7b6ab15426896d8cb94e458e43d5cebe36194a3a07e2d56f90bc34321bfa542c6a9fb9ac166ead361623581ea62d07babf09d070d2
6
+ metadata.gz: dbba3c30982c6ec916c18b4b4493662b9ccc4085b471284f2c0fc974e14f006b83848db8d31d4764f2a45396e2e9647e64264e88737f40cc0b0ba4a86a297811
7
+ data.tar.gz: b4550f2318d4c409221a4613cc0bd9dfa8ffb78d7033258701c8deee15ee3999d0eb5cdcb86beea04bb1fe08bb68de2e059c946a15b3d10b4f4c9e223c4208f0
@@ -26,6 +26,10 @@ tinyMCE.init({
26
26
  def parent_categories
27
27
  Caboose::Category.find(1).children.where(:status => 'Active')
28
28
  end
29
+
30
+ def forem_user
31
+ return @logged_in_user
32
+ end
29
33
 
30
34
  def gzip_javascript_include_tag(asset)
31
35
  tag = javascript_include_tag asset
@@ -41,6 +41,14 @@ class Caboose::User < ActiveRecord::Base
41
41
  def is_super_admin?
42
42
  return self.username == 'superadmin'
43
43
  end
44
+
45
+ def forem_name
46
+ self.username
47
+ end
48
+
49
+ def forem_email
50
+ self.email
51
+ end
44
52
 
45
53
  def is_allowed(resource, action)
46
54
  elo = Caboose::Role.logged_out_role(self.site_id)
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.92'
2
+ VERSION = '0.9.93'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.92
4
+ version: 0.9.93
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry