Admin cannot use UserFilesController#reprocess unless admin account is marked "enrolled"
#1 Updated by Tom Clegg almost 7 years ago
The before-filters in UserFilesController (and probably elsewhere) are meant to prevent participants from performing actions when not enrolled, active, etc. However, some of the same actions are available to admins (like "reprocess someone's uploaded data"), and the before filters check the status of the admin's account instead of either [a] checking the relevant participant's account or [b] just allowing admins to perform such actions regardless of the participant's state, which is the general approach to admin permissions. In any case the functionality shouldn't depend on admins having "enrolled" status because admins shouldn't be enrolled (even though the "test account" flag does prevent admins from showing up in participant lists regardless of the "enrolled" status).
rails console u = User.find(1234567) # get from location bar when showing the right user u.hex = u.send 'make_hex_code' u.enrolled = Time.now u.save