diff --git a/app/controllers/token_permission_types_controller.rb b/app/controllers/token_permission_types_controller.rb index 0f0649e..458ad69 100644 --- a/app/controllers/token_permission_types_controller.rb +++ b/app/controllers/token_permission_types_controller.rb @@ -2,7 +2,7 @@ def index - if user_signed_in? + if user_signed_in? && user.organisation.token_permission_types.count > 0 @user = current_user respond_to do |format| format.html diff --git a/app/views/token_permission_types/index.html.erb b/app/views/token_permission_types/index.html.erb index 4d5a325..7832b4e 100644 --- a/app/views/token_permission_types/index.html.erb +++ b/app/views/token_permission_types/index.html.erb @@ -5,8 +5,10 @@
-+