-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Added the ability to bulk print users #15534
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
7ad4a29
Add eager loading
marcusmoore e95703c
Use eager load
marcusmoore bdf5708
Remove accidental line
marcusmoore efd6d76
Remove bad closing tag
marcusmoore 8364d26
Extract parent layout
marcusmoore 2d2d5bd
Pass user in array
marcusmoore 5128fd4
Allow printing all users
marcusmoore 29af210
Merge branch 'develop' into bulk-print-users
marcusmoore e493cc9
Remove AssetCountForSidebar middleware from print view
marcusmoore 54044bf
Add eager loads
marcusmoore a2d4dcf
Use bulk actions menu
marcusmoore 8ac5c0e
Re-combine layout and view
marcusmoore a02e250
Add page breaks for each user
marcusmoore 3870095
Fix Cannot read properties of undefined error by removing snipe-table…
marcusmoore cef7ddc
Add eager loads to userscontroller
marcusmoore ab90c0c
Add missing eager load in bulk users controller
marcusmoore 4b02db5
Add authorization check in bulk users controller
marcusmoore 8b3b68b
Show or hide all eulas at once when printing multiple users
marcusmoore a12c9d0
Hide label when printing
marcusmoore fac4833
Remove unused import
marcusmoore File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Not positive about this since the top of the controller method has
$this->authorize('update', User::class);
...might end up in a place where the user has access to view users but not update them?Or maybe I should make this
$this->authorize('view', User::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.
I think we can start with
$this->authorize('view', User::class);
and add the stronger gates within that faux-router controller method.