#1606 API private token via the header
This commit is contained in:
		
							parent
							
								
									d104df49e7
								
							
						
					
					
						commit
						e9c356092b
					
				|  | @ -1,7 +1,7 @@ | ||||||
| module Gitlab | module Gitlab | ||||||
|   module APIHelpers |   module APIHelpers | ||||||
|     def current_user |     def current_user | ||||||
|       @current_user ||= User.find_by_authentication_token(params[:private_token]) |       @current_user ||= User.find_by_authentication_token(params[:private_token] || header[:private_token]) | ||||||
|     end |     end | ||||||
| 
 | 
 | ||||||
|     def user_project |     def user_project | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue