Skip to content
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

Check user permissions before uploading file #5072

Conversation

MrCrayon
Copy link
Collaborator

@MrCrayon MrCrayon commented Sep 9, 2020

VoyagerController@upload is used by tinyMCE to upload images.
This PR introduces checks to verify that user has permission to edit or add the BREAD and that there is a visibile tinyMCE editor in that BREAD action.

VoyagerController@upload to upload images.
This PR introduces checks to verify that user has permission to edit or add the BREAD and that there is a visibile tinyMCE editor in that BREAD action.
@codecov
Copy link

codecov bot commented Sep 9, 2020

Codecov Report

Merging #5072 (beb2e69) into 1.4 (1940d6c) will decrease coverage by 0.09%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##                1.4    #5072      +/-   ##
============================================
- Coverage     63.31%   63.21%   -0.10%     
- Complexity     1379     1383       +4     
============================================
  Files           194      194              
  Lines          4075     4081       +6     
============================================
  Hits           2580     2580              
- Misses         1495     1501       +6     
Impacted Files Coverage Δ Complexity Δ
src/Http/Controllers/VoyagerController.php 33.92% <0.00%> (-4.08%) 16.00 <2.00> (+4.00) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1940d6c...beb2e69. Read the comment docs.

@emptynick emptynick merged commit 8b030a3 into thedevdojo:1.4 Jan 28, 2021
@MrCrayon MrCrayon deleted the feature-add-permission-checks-in-tinymce-image-upload branch February 11, 2021 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants