2659: no need for permit_anonymous_browsing_for_public_data filter; instead, directly...
[arvados.git] / apps / workbench / app / controllers / application_controller.rb
index a064d5399f7fce8be577f6df7c8a38107bf39398..02ae656299be331be6e81a5e9dcc0f26c7944040 100644 (file)
@@ -390,7 +390,7 @@ class ApplicationController < ActionController::Base
     @user_is_manager = false
     @share_links = []
 
-    if @object.uuid != current_user.uuid
+    if @object.uuid != current_user.andand.uuid
       begin
         @share_links = Link.permissions_for(@object)
         @user_is_manager = true
@@ -646,6 +646,7 @@ class ApplicationController < ActionController::Base
   end
 
   def check_user_profile
+    return true if !current_user
     if request.method.downcase != 'get' || params[:partial] ||
        params[:tab_pane] || params[:action_method] ||
        params[:action] == 'setup_popup'