Browse Source

FIX get user info api's bug

tags/v1.0.0
Jasder 5 years ago
parent
commit
a4c5db95bb
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/controllers/users_controller.rb

+ 2
- 1
app/controllers/users_controller.rb View File

@@ -4,7 +4,8 @@ class UsersController < ApplicationController
before_action :load_user, only: [:show, :homepage_info, :sync_token, :sync_gitea_pwd, :projects, :watch_users, :fan_users]
before_action :check_user_exist, only: [:show, :homepage_info,:projects, :watch_users, :fan_users]
before_action :require_login, only: %i[me list]
before_action :connect_to_ci_database, only: :get_user_info
before_action :connect_to_ci_database, only: :get_user_info, if: -> { current_user && !current_user.is_a?(AnonymousUser) }
skip_before_action :check_sign, only: [:attachment_show]
def list


Loading…
Cancel
Save