Closed Deltik closed 9 months ago
Code Climate has analyzed commit dd36fbd5 and detected 183 issues on this pull request.
Here's the issue category breakdown:
Category | Count |
---|---|
Bug Risk | 183 |
The test coverage on the diff in this pull request is 77.5% (80% is the threshold).
This pull request will bring the total coverage in the repository to 34.4% (-0.2% change).
View more on Code Climate.
Thank you!! 🥇 👍
Motivation and Context
I had some concerns about https://github.com/e107inc/e107/commit/44526b435c85620d0fb4cff6858f3ef7fc615ca6 and https://github.com/e107inc/e107/commit/001799cb5f95b33d9c227acb41d5d657e21b7d88:
Description
Along with extensive documentation,
getperms()
is now deprecated and its replacements now have first-class support:e_user_model::checkAdminPerms()
andgetperms()
both usee_userperms::simulateHasAdminPerms()
.e_user_model::checkPluginAdminPerms()
andgetperms('P', …, …)
both usee_userperms::simulateHasPluginAdminPerms()
.Partially reverts: https://github.com/e107inc/e107/commit/44526b43
Reverts: https://github.com/e107inc/e107/commit/001799cb
Fixes: https://github.com/e107inc/e107/issues/5064
How Has This Been Tested?
As this is a refactoring only, all existing tests of
getperms()
pass.I also added some tests for the misuse cases of whitespace in the second argument or an integer in the first argument of
getperms(0, ' ')
.Types of Changes
Checklist