fat_free_crm
fat_free_crm copied to clipboard
Security: Activity (Homepage) and Recent Items (Sidebar) ignore permissions
Items which are marked as private are shown in Activity and Recent Items even to users who are not admin.
Thanks for reporting, we should address this. As a workaround, you can use the my
scope to view only things that the current user is allowed to see. For example:
Account.my
Having looked at this a bit further, I can't see private records in "Recent Items" and the code seems to support filtering out items you're not allowed to see. (See config/paper_trail.rb#recent_for_user)
For the dashboard activity screen, the only activities for private items I can see are 'Person X created a comment on Thing Y' but if you click on "Thing Y", you're not allowed to see it. This should still be fixed so that it is not showing but other than that, I can't find other cases where the permissions are too lax.
Can you describe the circumstances where you can reproduce the original problem in more detail?
Thanks.
For the dashboard activity screen, the only activities for private items I can see are 'Person X created a comment on Thing Y' but if you click on "Thing Y", you're not allowed to see it. This should still be fixed so that it is not showing but other than that, I can't find other cases where the permissions are too lax.
That's what i was referring to. Not a huge problem, but still a problem, if names of companies, contacts, etc. are revealed that others aren't allowed to see.=
Ok great, makes sense now.
Interestingly, as a small workaround for the moment, you can set
Setting.comments_visible_on_dashboard = false
in config/settings.yml
That doesn't fix the underlying issue though, just gets around it for now.
On Mon, Jan 5, 2015 at 9:50 AM, Jan Schulz-Hofen [email protected] wrote:
For the dashboard activity screen, the only activities for private items I can see are 'Person X created a comment on Thing Y' but if you click on "Thing Y", you're not allowed to see it. This should still be fixed so that it is not showing but other than that, I can't find other cases where the permissions are too lax.
That's what i was referring to. Not a huge problem, but still a problem, if names of companies, contacts, etc. are revealed that others aren't allowed to see.=
— Reply to this email directly or view it on GitHub https://github.com/fatfreecrm/fat_free_crm/issues/346#issuecomment-68659977 .
Thanks for the hint, I had worked around it by commenting the sections out in the respective views...