mpociot / teamwork

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

Changed isOwnerOfTeam to use $user->team() #68

Closed codedninja closed 7 years ago

codedninja commented 7 years ago

67

Changed ownerOfTeam to use $user->team() since everytime before it would run a new query against the database.

codedninja commented 7 years ago

I do these pull requests late in the night and forget the little things since sleep deprived.

codecov-io commented 7 years ago

Current coverage is 75.21% (diff: 100%)

Merging #68 into master will decrease coverage by 0.14%

@@             master        #68   diff @@
==========================================
  Files            14         14          
  Lines           349        347     -2   
  Methods          61         61          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits            263        261     -2   
  Misses           86         86          
  Partials          0          0          

Powered by Codecov. Last update 81ed9b1...1b8476a

mpociot commented 7 years ago

Thank you