docbrown/app
Jeremy Friesen 4509e81dd5
Ensuring the same policies for analytics (#16997)
Prior to this commit the following situation existed:

> The path /dashboard/analytics/org/:id requires user
> authentication (e.g. signed in). However, it does not enforce
> authorization. Anyone can see this page. The page, however, uses
> javascript to populate the data. So no information, aside from the org
> name associated with the :id leaks out. The javascript API end point
> enforces organization membership.
>
> I would expect that the authorization in the HTML rendering would be
> the same as the javascript API end point.

This commit ensures that the dashboards#analytics end point uses the
same policy logic as the API analytics end points.  Further, it keeps
folks who aren't org members out of the base HTML page for other orgs.

Closes forem/forem/#16985
2022-03-25 14:57:01 -04:00
..
assets Admin member index: Update pagination layout & styles (#16995) 2022-03-25 07:50:50 +00:00
controllers Ensuring the same policies for analytics (#16997) 2022-03-25 14:57:01 -04:00
decorators [Small win] Add display name to campaign settings (#16653) 2022-02-22 10:01:52 -05:00
errors Favoring re-use of authorization error (#16992) 2022-03-24 08:16:28 -04:00
forms Using a Form Object that will persist for the Creator Settings Form (#15684) 2021-12-10 17:07:40 +02:00
helpers Refactoring AdminMenu and Menu towards classes (#16847) 2022-03-21 13:31:20 -04:00
javascript Improvements to home feed profile preview card cypress spec (#17011) 2022-03-25 13:57:48 -04:00
lib Optimize URL.database_available? (#16968) 2022-03-22 13:04:12 -04:00
liquid_tags youtube tag timestamp format fix (#16873) 2022-03-22 08:55:45 -06:00
mailers "Reply to" and "From" Email addresses for SMTP Configurations (#16499) 2022-02-16 16:14:54 +02:00
models feat: change people to members (#16994) 2022-03-24 15:44:46 +02:00
policies Ensuring the same policies for analytics (#16997) 2022-03-25 14:57:01 -04:00
queries small non-views ruby i18n (#16004) 2022-01-11 10:05:18 +07:00
refinements Drop profile columns from user (#10707) 2020-12-03 08:14:38 +07:00
sanitizers Don't sanitize anchor elements with no href (#16667) 2022-02-22 11:27:38 -06:00
serializers Remove unused methods from User (#16616) 2022-02-18 09:02:17 +07:00
services Adding :internal auditing for admin/spaces#update (#17010) 2022-03-25 14:25:13 -04:00
uploaders small non-views ruby i18n (#16004) 2022-01-11 10:05:18 +07:00
validators Remove the "Getting Started" Section from the Config (#16033) 2022-01-20 07:31:35 -07:00
view_objects Patching ERB rendering of the data-info JSON (#16067) 2022-01-14 08:30:49 -05:00
views Conditionally reducing dashboard chatter for users (#16999) 2022-03-25 13:59:53 -04:00
workers Limit per-user feed import fanout to users with feed urls set (#16831) 2022-03-09 08:51:00 -06:00