Lou 3 years ago
parent
commit
f213c35521
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/controllers/api/v1/teams_controller.rb

+ 1
- 1
app/controllers/api/v1/teams_controller.rb View File

@@ -54,6 +54,6 @@ class Api::V1::TeamsController < ApplicationController
54 54
   end
55 55
 
56 56
   def can_edit?
57
-    head :forbidden unless Membership.where(:team_id => params[:id]).where(:member_id => current_user.id)[0].can_edit
57
+    head :forbidden unless Membership.where(team_id: params[:id]).where(member_id: current_user.id)[0].can_edit
58 58
   end
59 59
 end

Loading…
Cancel
Save