Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-05-19 12:20:51 +0300
committerRémy Coutable <remy@rymai.me>2017-05-19 12:20:51 +0300
commit9a15b112377e305bd55e2c539786aee7db569e29 (patch)
treebc70241f64d2e75c989f0a2630e31d9473748471 /app/controllers
parentdda66953ffbf102f3c9eef7921bb9a25d3b45b88 (diff)
Fixes the 500 for custom apearance header logo and logo
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/uploads_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/uploads_controller.rb b/app/controllers/uploads_controller.rb
index 21a964fb391..eef53730291 100644
--- a/app/controllers/uploads_controller.rb
+++ b/app/controllers/uploads_controller.rb
@@ -21,6 +21,8 @@ class UploadsController < ApplicationController
can?(current_user, :read_project, model.project)
when User
true
+ when Appearance
+ true
else
permission = "read_#{model.class.to_s.underscore}".to_sym