File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ async fn roles_to_set(
52
52
} ;
53
53
let mut roles_to_set = Vec :: new ( ) ;
54
54
let user_roles: Vec < _ > = match & controller {
55
- Some ( c) => c. roles . split_terminator ( '\n ' ) . collect ( ) ,
55
+ Some ( c) => c. roles . split_terminator ( ', ' ) . collect ( ) ,
56
56
None => {
57
57
return Ok ( HashSet :: new ( ) ) ;
58
58
}
@@ -61,6 +61,8 @@ async fn roles_to_set(
61
61
roles_to_set. push ( StaffPosition :: AFE ) ;
62
62
} else if user_roles. contains ( & "EC" ) {
63
63
roles_to_set. push ( StaffPosition :: AEC ) ;
64
+ } else if user_roles. contains ( & "TA" ) {
65
+ roles_to_set. push ( StaffPosition :: MTR ) ;
64
66
} else if controller_can_see ( & controller, PermissionsGroup :: Admin ) {
65
67
roles_to_set. push ( vzdv:: StaffPosition :: ATM ) ;
66
68
roles_to_set. push ( vzdv:: StaffPosition :: DATM ) ;
Original file line number Diff line number Diff line change 20
20
<div class =" card-text" >
21
21
<ul >
22
22
<li >Minor text improvement to solo certs page</li >
23
+ <li >Minor text improvement to controller page</li >
24
+ <li >Changed role assignments by the TA</li >
23
25
</ul >
24
26
</div >
25
27
</div >
Original file line number Diff line number Diff line change 273
273
274
274
<dialog id =" modalChangeRoles" >
275
275
<h2 class =" pb-3" >Edit roles</h2 >
276
- <p >These are roles <i >on this site</i > and do not change anything that VATUSA, etc. know about the controller.</p >
277
- <p >Sr Staff roles will sync from VATUSA, which may overwrite whatever is set here.</p >
276
+ <p >
277
+ These are roles <i >on this site</i > and do not change anything that VATUSA, etc. know about the controller.
278
+ <br >
279
+ Sr Staff and Mentor roles will sync from VATUSA, which may overwrite whatever is set here.
280
+ </p >
278
281
<form action =" /controller/{{ controller.cid }}/roles" method =" POST" >
279
282
{% for role in settable_roles %}
280
283
<div class =" row" >
You can’t perform that action at this time.
0 commit comments