[openstreetmap/openstreetmap-website] WIP: Move to CanCanCan for authorization (#2023)
Andy Allan
notifications at github.com
Wed Oct 17 12:05:14 UTC 2018
gravitystorm commented on this pull request.
> @@ -466,6 +468,23 @@ def better_errors_allow_inline
raise
end
+ def current_ability
+ Ability.new(current_user).merge(granted_capability)
Not deliberate by me. But adding in the memoization causes the tests to fail, and I would need to investigate why.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2023#discussion_r225895951
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20181017/de50a54f/attachment.html>
More information about the rails-dev
mailing list