Overwrite functions of Controller-Class

Mainclain

Member
Hello,

I want to create a simply addon which adds a new permission.
It will add a permission, so not all user can create polls.

At the moment, I only hide the input-fields for those user, but this is not really secure (It isn't that important, but I want it to be :p ).

Is there a possibilty to add code to the actionAddThread method of XenForo_ControllerPublic_Forum class?
 
Hello,

I want to create a simply addon which adds a new permission.
It will add a permission, so not all user can create polls.

At the moment, I only hide the input-fields for those user, but this is not really secure (It isn't that important, but I want it to be :p ).

Is there a possibilty to add code to the actionAddThread method of XenForo_ControllerPublic_Forum class?

You can use this add-on for an example: http://xenforo.com/community/resources/icewind-more-permissions.2963/ It adds new permissions for polls including creating a poll. This version does not work with XF 1.4 beta, but will be updated.
 
Back
Top Bottom