Allowing banned users to perform specific actions is more complicated than it needs to be

  • Thread starter Thread starter Kirby
  • Start date Start date

Kirby

Guest
Member
Allowing banned users to perform certain actions (like using the contact form) requires overriding assertNotBanned.

But, unlike most other assert* methods, this method does not get passed the action.

So in order to only allow specific actions, this also requires some kinda ugly workaround like also overriding preDispatchType.

Could this be changed (for 2.3.0+?) so assertNotBanned and assertIpNotBanned both do get the action as well?


free plugins...
...

Read more

Continue reading...
 
Top