[RSS Feed/News] Allowing banned users to perform specific actions is more complicated than it needs to be

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
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?

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom