We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fbb9f6 commit 22f2425Copy full SHA for 22f2425
app/controllers/users_controller.rb
@@ -4,11 +4,7 @@ class UsersController < ApplicationController
4
team_subdomain_only :index
5
6
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
+ authorize! :read, TeamMembership
+ render json: current_team.members, status: 200
13
end
14
0 commit comments