Skip to content

Commit 7d7eff7

Browse files
committed
Removed unneeded subdomain check
1 parent f4ac5c6 commit 7d7eff7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

app/controllers/teams_controller.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,8 @@ def create
2121
end
2222

2323
def show
24-
if has_team_subdomain?
25-
authorize! :read, current_team
26-
render json: current_team, status: 200
27-
else
28-
forbidden
29-
end
24+
authorize! :read, current_team
25+
render json: current_team, status: 200
3026
end
3127

3228
def destroy

0 commit comments

Comments
 (0)