This change will intentionally throw a RecordNotFound-error to prevent a nil-error later on. The intended behaviour is to log the user out and redirect to login, but this is currently impossible because helpers can't redirect in all cases. The authentication helpers should probably be moved to a concern, but I can't be bothered enough, so it remains fixme.
|
|
||
38 |
|
38 |
|
39 |
|
39 |
|
40 |
|
40 |
|
41 |
|
|
|
|
41 |
|
|
42 |
|
42 |
|
43 |
|
43 |
|
44 |
|
44 |
|
|
|
||
91 |
|
91 |
|
92 |
|
92 |
|
93 |
|
93 |
|
94 |
|
|
|
95 |
|
|
|
|
94 |
|
|
|
95 |
|
|
96 |
|
96 |
|
97 |
|
97 |
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
98 |
|
104 |
|
99 |
|
105 |
|
100 |
|
106 |
|