Fork me on GitHub
Subscribe 1

Ticket #705 (fixed enhancement)

Use action filters for permission checks

  • Created: 2012-07-10 21:52:34
  • Reported by: Franz
  • Assigned to: Franz
  • Milestone: 2.0-alpha1
  • Component: code
  • Priority: normal

Action filters are Laravel's supreme mechanism for making repetitive checks for things like permissions etc. before controller actions are executed.

As those checks are beginning to repeat themselves, e.g. in the auth controller, it is about time we make use of action filters.

This also allows us to have the handling of those permissions all in one place.


Franz 2012-07-11 15:14:07

  • Owner set to Franz.

Franz 2012-07-11 15:32:10

Commit 735ce6f to core master

#705: Use an action filter for prohibiting members from accessing the login / register pages.

Franz 2012-07-11 16:55:20

Commit f861221 to core master

#705: Implement an action filter that only allows access for logged-in members.

Franz 2012-08-01 19:56:57

  • Status changed from open to fixed.

This is done for all existing cases and will be used for any new ones in the future.