Skip to content

Commit 22f2425

Browse files
committed
Removed remaining controller specific subdomain check
1 parent 4fbb9f6 commit 22f2425

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

app/controllers/users_controller.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ class UsersController < ApplicationController
44
team_subdomain_only :index
55

66
def index
7-
if has_team_subdomain?
8-
authorize! :read, TeamMembership
9-
render json: current_team.members, status: 200
10-
else
11-
forbidden
12-
end
7+
authorize! :read, TeamMembership
8+
render json: current_team.members, status: 200
139
end
1410
end

0 commit comments

Comments
 (0)