dynamic / silverstripe-elemental-blocks

Custom elements that work with SilverStripe Elemental module
BSD 3-Clause "New" or "Revised" License
8 stars 5 forks source link

ElementPermissions #71

Closed jsirish closed 6 years ago

jsirish commented 6 years ago

add permissionProvider for Elements and related classes

fixes non-admins not being able to publish pages

codecov[bot] commented 6 years ago

Codecov Report

Merging #71 into master will increase coverage by 10.79%. The diff coverage is 100%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master      #71       +/-   ##
=============================================
+ Coverage     86.36%   97.16%   +10.79%     
+ Complexity       84       59       -25     
=============================================
  Files            21       23        +2     
  Lines           308      282       -26     
=============================================
+ Hits            266      274        +8     
+ Misses           42        8       -34
Impacted Files Coverage Δ Complexity Δ
src/Elements/ElementPromos.php 100% <ø> (+64.15%) 5 <0> (-11) :arrow_down:
src/Model/PromoObject.php 100% <ø> (ø) 1 <0> (-7) :arrow_down:
src/Model/FeatureObject.php 100% <ø> (ø) 1 <0> (-4) :arrow_down:
src/Elements/ElementCustomerService.php 100% <ø> (ø) 3 <0> (ø) :arrow_down:
src/Model/BaseElementObject.php 100% <ø> (ø) 3 <0> (ø) :arrow_down:
src/Model/GalleryImage.php 100% <ø> (ø) 1 <0> (-4) :arrow_down:
src/Model/AccordionPanel.php 100% <ø> (ø) 1 <0> (-4) :arrow_down:
src/Extensions/ElementPermissions.php 100% <100%> (ø) 1 <1> (?)
src/Extensions/ElementalPermissions.php 100% <100%> (ø) 4 <4> (?)
... and 1 more

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 894b37c...44d1717. Read the comment docs.