diff --git a/app/controllers/token_permission_types_controller.rb b/app/controllers/token_permission_types_controller.rb index 5d5c3fc..3500374 100644 --- a/app/controllers/token_permission_types_controller.rb +++ b/app/controllers/token_permission_types_controller.rb @@ -2,6 +2,7 @@ def index authorize TokenPermissionType @user = current_user + @token_types = @user.organisation.token_permission_types respond_to do |format| format.html end diff --git a/app/views/token_permission_types/index.html.erb b/app/views/token_permission_types/index.html.erb index f7be6ec..0f7e8bd 100644 --- a/app/views/token_permission_types/index.html.erb +++ b/app/views/token_permission_types/index.html.erb @@ -1,5 +1,5 @@ -<% @user.organisation.token_permission_types.each do |token_type|%> +<% @token_types.each do |token_type|%>

<%= token_type.token_type %>