-
-
Notifications
You must be signed in to change notification settings - Fork 541
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[4.x] Asset field now supports mixed permissions (#9156)
* nothing is disabled * only show Browse button if you have `view` permission * Update resources/js/components/fieldtypes/assets/AssetsFieldtype.vue Co-authored-by: Duncan McClean <19637309+duncanmcclean@users.noreply.github.com> * Check permissions for upload button too * disable drag-and-drop uploader when user is missing upload permissions * unrelated but we don't need this there's no starting tag * hide browse/upload picker when user is missing both permissions --------- Co-authored-by: Duncan McClean <19637309+duncanmcclean@users.noreply.github.com> Co-authored-by: Duncan McClean <duncan@duncanmcclean.com>
- Loading branch information
1 parent
6cc0967
commit 69209cb
Showing
2 changed files
with
14 additions
and
18 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
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