mpociot / teamwork

User to Team associations with invitation system for the Laravel 5 Framework
MIT License
1.07k stars 170 forks source link

Fixes #90 #91

Closed vmitchell85 closed 5 years ago

vmitchell85 commented 6 years ago
  1. Checks if there is an id in the URL and throws a 404 if not.
  2. If there is then load that team and check for ownership.
  3. If the current authenticated user is not that team's owner throw a 403.
codecov-io commented 6 years ago

Codecov Report

Merging #91 into master will decrease coverage by 0.84%. The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #91      +/-   ##
==========================================
- Coverage   76.12%   75.27%   -0.85%     
==========================================
  Files          15       15              
  Lines         356      360       +4     
==========================================
  Hits          271      271              
- Misses         85       89       +4
Impacted Files Coverage Δ
src/Mpociot/Teamwork/Middleware/TeamOwner.php 0% <0%> (ø) :arrow_up:

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 ffea927...d17803a. Read the comment docs.

vmitchell85 commented 5 years ago

Closing since there is no action being taken