diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-05-19 12:20:51 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-05-19 12:20:51 +0300 |
commit | 9a15b112377e305bd55e2c539786aee7db569e29 (patch) | |
tree | bc70241f64d2e75c989f0a2630e31d9473748471 /app/controllers | |
parent | dda66953ffbf102f3c9eef7921bb9a25d3b45b88 (diff) |
Fixes the 500 for custom apearance header logo and logo
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/uploads_controller.rb | 2 |
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 |