Commit c1fbe45
Justus Pendleton
Fix [SF#738470]. Validate timezone setting in userauditor
The timezone setting is just a plain string, which was being
stored blindly. The problem is that certain parts of the roundup
web UI (notably the user details page) try to use, assuming that it
is valid. If a user enters garbage then they cannot access their
details page (and possibly other parts of roundup) until an admin
fixes their timezone for them.
During userauditor, we attempt to use the new timezone value and
catch any exceptions that may be raised.
I posted this patch to roundup-users several days ago and no one
screamed. Now that I have commit access I'll check it in.
I also noticed that the classic and minimal template userauditors
were slightly different in their check for 'roles'. I couldn't discern
a reason for the difference so I made them the same. I can change it
back if need be.1 parent 47aa7fc commit c1fbe45
File tree
2 files changed
+32
-5
lines changed- templates
- classic/detectors
- minimal/detectors
2 files changed
+32
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
38 | 52 | | |
39 | 53 | | |
40 | 54 | | |
41 | 55 | | |
42 | | - | |
43 | | - | |
| 56 | + | |
44 | 57 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
38 | 52 | | |
39 | 53 | | |
40 | 54 | | |
| |||
0 commit comments