Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Wrong entity menus #61

Open
Daltonstudio opened this issue Jan 26, 2016 · 0 comments
Open

Wrong entity menus #61

Daltonstudio opened this issue Jan 26, 2016 · 0 comments

Comments

@Daltonstudio
Copy link
Collaborator

Only noticing this now for some reason.
But could it be that this: https://github.com/hypeJunction/hypeGallery/blob/master/lib/hooks.php#L212
is adding the edit and delete items to the entity menu while they're not supposed to? It adds those options to any logged in user, instead to the owner.

Shouldn't
if (elgg_is_logged_in()) { be if ($entity->canEdit()) {?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant