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 +4 -4
- data/app/helpers/caboose/application_helper.rb +4 -0
- data/app/models/caboose/user.rb +8 -0
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42e8ec3cf94818a94931ec495a53466889ddf35f
|
4
|
+
data.tar.gz: 8cc33bf2023140a4a3040de6689fcebf8d31b4ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbba3c30982c6ec916c18b4b4493662b9ccc4085b471284f2c0fc974e14f006b83848db8d31d4764f2a45396e2e9647e64264e88737f40cc0b0ba4a86a297811
|
7
|
+
data.tar.gz: b4550f2318d4c409221a4613cc0bd9dfa8ffb78d7033258701c8deee15ee3999d0eb5cdcb86beea04bb1fe08bb68de2e059c946a15b3d10b4f4c9e223c4208f0
|
data/app/models/caboose/user.rb
CHANGED
@@ -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)
|
data/lib/caboose/version.rb
CHANGED