forked from openstreetmap/openstreetmap-website
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore the PermitAttributes for the assignment to community_membershi…
…p.role.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"ignored_warnings": [ | ||
{ | ||
"warning_type": "Mass Assignment", | ||
"warning_code": 105, | ||
"fingerprint": "011f7d421c6b9e3e1176c3e150ab448c9ef29fbeb7ebeb0e4e14ff10682780d1", | ||
"check_name": "PermitAttributes", | ||
"message": "Potentially dangerous key allowed for mass assignment", | ||
"file": "app/controllers/community_members_controller.rb", | ||
"line": 63, | ||
"link": "https://brakemanscanner.org/docs/warning_types/mass_assignment/", | ||
"code": "params.require(:community_member).permit(:role)", | ||
"render_path": null, | ||
"location": { | ||
"type": "method", | ||
"class": "CommunityMembersController", | ||
"method": "update_params" | ||
}, | ||
"user_input": ":role", | ||
"confidence": "Medium", | ||
"cwe_id": [ | ||
915 | ||
], | ||
"note": "Role is an attribute of the membership." | ||
} | ||
], | ||
"updated": "2022-10-16 19:49:32 +0000", | ||
"brakeman_version": "5.3.1" | ||
} |