-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/name email search list users #184
base: develop
Are you sure you want to change the base?
Conversation
system/templates/base/.gitignore
Outdated
dist/ | ||
package-lock.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this and add package-lock.json back in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dist should still be left out, we just need to not add packaage-lock.json to .gitignore
…five-core into feature/FormBannerSupport Merging config setup by Adam
…five-core into feature/FormBannerSupport
Incorporating codeception updates
@@ -48,3 +56,20 @@ function index_ALL(Web $w) | |||
//send the table to the template using ctx | |||
$w->ctx('insightTable', Html::table($table, 'insight_table', 'tablesorter', $tableHeaders)); | |||
} | |||
|
|||
// Function to recursively check if a user is a member of a group (or parent group) | |||
function checkUserAccess(Web $w, $group, $user_id) : bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid putting extra functions in action files. They should instead be in the Service class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After putting the function into InsightService
eg public function checkUserAccess(Web $w, $group, $user_id): bool
How does the action function find the function in the service class?
I get "undefined function" if called as "checkUserAccess(...)"
and "Non static method 'checkUserAccess' should not be called statically." if I called as "InsightService::checkUserAccess(...)"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw should "checkUserAccess(...)" function go in InsightService or AuthService?
system/templates/base/.gitignore
Outdated
dist/ | ||
package-lock.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dist should still be left out, we just need to not add packaage-lock.json to .gitignore
Moved to draft cause I dont think this PR offers anything anymore. Holding off to make sure soon |
Checklist
Description
Added Login, Name and Email filter to List Users function within Admin menu.
Filter fields match any part of the target string.
"Name" searches first and last names for a match.
Changelog
refs:
issues:
Other Information
Docs pull request: