cbrain icon indicating copy to clipboard operation
cbrain copied to clipboard

As Admin I see my regular user projects as 'someone'

Open MontrealSergiy opened this issue 4 years ago • 3 comments

is everything right, admin does not see project author name? image

MontrealSergiy avatar Nov 17 '20 00:11 MontrealSergiy

Very likely a bug

prioux avatar Nov 17 '20 05:11 prioux

Somehow the issue disappeared, may be some temporary issues with new projects. Will double check latter

MontrealSergiy avatar Nov 17 '20 15:11 MontrealSergiy

I had the same issue last week (and now it disappears too). When exploring the code I saw that the text in the select box came from:

https://github.com/aces/cbrain/blob/410d1fcad9b05b774176ef3c0ac6178fb23ec3eb/BrainPortal/app/models/work_group.rb#L73

This is called by the following line:

https://github.com/aces/cbrain/blob/410d1fcad9b05b774176ef3c0ac6178fb23ec3eb/BrainPortal/app/helpers/select_box_helper.rb#L127

In meantime, I had the (Someone) group that appears in the user interface, but when I execute WorkGroup.prepare_pretty_category_names(groups, current_user) I do not get the (Someone) group.

I am a little bit puzzled by this issue (that I cannot reproduce today).

natacha-beck avatar Sep 07 '21 15:09 natacha-beck