mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-03-15 12:29:16 +01:00
(bug) admins can collaborate on projects
This commit is contained in:
parent
31b4089bd2
commit
838dbc85af
@ -7,6 +7,7 @@
|
||||
- Fix a bug: undefined error in new member page
|
||||
- Fix a bug: OIDC scopes are separated by spaces, not commas
|
||||
- Fix a bug: unable to create OIDC custom scopes
|
||||
- Fix a bug: enable admins to be invited to collaborate on projects
|
||||
- Fix a security issue: updated rack to 2.2.3.1 to fix [CVE-2022-30123](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-30123) and [CVE-2022-30122](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-30122)
|
||||
|
||||
|
||||
|
@ -50,7 +50,7 @@ class Members::ListService
|
||||
'SELECT max("created_at") ' \
|
||||
'FROM "subscriptions" ' \
|
||||
'WHERE "statistic_profile_id" = "statistic_profiles"."id")')
|
||||
.where("users.is_active = 'true' AND (roles.name = 'member' OR roles.name = 'manager')")
|
||||
.where("users.is_active = 'true'")
|
||||
.limit(50)
|
||||
query.downcase.split(' ').each do |word|
|
||||
members = members.where('lower(f_unaccent(profiles.first_name)) ~ :search OR ' \
|
||||
|
Loading…
x
Reference in New Issue
Block a user