I upgraded to Author Pane 2.1 at the same time as Advanced Forum 1.2 because of the compatibility.
The author panes in the forum are now showing the location even though I have removed all permissions for viewing the locations.
I do not want the locations in the forums, can I turn this off or is this a bug that it is not following the permissions.

Comments

Skispcs’s picture

I solved the immediate issue by deleting the location.author-pane.inc file in author_pane/modules.
Personally I think this is a major bug to ignore permissions and display information by default.

michelle’s picture

Title: Location Being displayed without permissions » Add check for permission before displaying location
Version: 6.x-2.1 » 6.x-2.x-dev
Category: support » task
Priority: Major » Normal

I didn't write nor do I support the location integration code. Since this has never come up before, it's possible the permission didn't exist when it was added. If someone wants to submit a patch for permission checking, I'd be happy to add it. Otherwise, people either need to edit their template or remove the .inc. If it becomes a major issue and no one comes forward with a patch, I will remove the integration from the module.

Michelle

silentway’s picture

I have to agree with the OP and #1: to expose location information without honoring permissions is a significant security breach. Regardless of who wrote or currently supports the location code, to expose it by default is not a good idea. I suggest making this disabled by default but offering an option to enable it.

Or, a nice compromise would be to partially enable it. For example, by default just the user's Country and City could be shown. To show more would require template editing.

(Also, I confirm that removing author_pane/modules/location.author-pane.inc is a quick fix until the next version).

michelle’s picture

I think you missed the point that no one is supporting it and so far that's who's offered up a patch as well.

Michelle

michelle’s picture

This was unpublished since it went to the security team but, for those who have permission to read it, this has been resolved by removing the location integration.

Michelle

drumm’s picture

Issue summary: View changes

This likely should have been reported confidentially.

Since there are no supported versions of this project currently, it can be handled in public. It looks like it was fixed.

drumm’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.