authentasaurus 0.4.8 → 0.4.11
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
|
|
1
|
-
class
|
1
|
+
class AuthentasaurusEmailer < ActionMailer::Base
|
2
2
|
def validation_mail(name, email, validation_code, sent_at = Time.now)
|
3
3
|
subject AUTHENTASAURUS[:modules][:validatable][:mail_subject]
|
4
4
|
recipients email
|
@@ -119,7 +119,7 @@ module ActionController::Authorization
|
|
119
119
|
user_permissions = session[:user_permissions]
|
120
120
|
check = user_permissions[:write].find { |perm| perm==self.controller_name || perm=="all" }
|
121
121
|
unless check
|
122
|
-
redirect_to
|
122
|
+
redirect_to no_access_session_path
|
123
123
|
end
|
124
124
|
else
|
125
125
|
login_required skip_request
|
@@ -135,7 +135,7 @@ module ActionController::Authorization
|
|
135
135
|
user_permissions = session[:user_permissions]
|
136
136
|
check = user_permissions[:read].find { |perm| perm==self.controller_name || perm=="all" }
|
137
137
|
unless check
|
138
|
-
redirect_to
|
138
|
+
redirect_to no_access_session_path
|
139
139
|
end
|
140
140
|
else
|
141
141
|
login_required skip_request
|
@@ -31,7 +31,7 @@ module ActionView::Authorization
|
|
31
31
|
user_permissions = session[:user_permissions]
|
32
32
|
check = user_permissions[:write].find { |perm| perm==self.controller_name || perm=="all" }
|
33
33
|
unless check
|
34
|
-
redirect_to
|
34
|
+
redirect_to no_access_session_path
|
35
35
|
end
|
36
36
|
else
|
37
37
|
login_required skip_request
|
@@ -47,7 +47,7 @@ module ActionView::Authorization
|
|
47
47
|
user_permissions = session[:user_permissions]
|
48
48
|
check = user_permissions[:read].find { |perm| perm==self.controller_name || perm=="all" }
|
49
49
|
unless check
|
50
|
-
redirect_to
|
50
|
+
redirect_to no_access_session_path
|
51
51
|
end
|
52
52
|
else
|
53
53
|
login_required skip_request
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authentasaurus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 11
|
10
|
+
version: 0.4.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Omar Mekky
|
@@ -44,6 +44,7 @@ files:
|
|
44
44
|
- app/controllers/validations_controller.rb
|
45
45
|
- app/controllers/authentasaurus/authentasaurus_controller.rb
|
46
46
|
- app/models/area.rb
|
47
|
+
- app/models/authentasaurus_emailer.rb
|
47
48
|
- app/models/group.rb
|
48
49
|
- app/models/permission.rb
|
49
50
|
- app/models/recovery.rb
|
@@ -124,7 +125,6 @@ files:
|
|
124
125
|
- lib/active_resource/acts_as_authenticatable.rb
|
125
126
|
- lib/active_resource/authenticatable.rb
|
126
127
|
- lib/authentasaurus/models/area.rb
|
127
|
-
- lib/authentasaurus/models/authentasaurus_emailer.rb
|
128
128
|
- lib/authentasaurus/models/group.rb
|
129
129
|
- lib/authentasaurus/models/permission.rb
|
130
130
|
- lib/authentasaurus/models/recovery.rb
|