FriendsOfFlarum / links

Manage Flarum primary navigation links
MIT License
37 stars 11 forks source link

Hide link if user doesn't have permission #18

Closed x7airworker closed 1 year ago

x7airworker commented 4 years ago

A Flarum link should hide, if the user doesn't have permission to the tag the discussion belongs to.

dsevillamartin commented 4 years ago

Problem with this is that links by themselves do not have permissions - it's the content they show. You are simply setting an address to the link - there's not much permission checking you can do there.

Perhaps if we use the config.php URL and find the resource that way, but that won't always work. Will probably have to add a feature to associate discussions/pages with links directly (instead of just putting their address).

x7airworker commented 4 years ago

Yeah I also thought about an implementation with links.

I think adding discussions/pages directly is the easiest solution.