1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Overwrite functions of Controller-Class

Discussion in 'XenForo Development Discussions' started by Mainclain, Aug 16, 2014.

  1. Mainclain

    Mainclain Member


    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?
  2. Lawrence

    Lawrence Well-Known Member

    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.
  3. Mainclain

    Mainclain Member

    Ah thanks, that's exactly what I need :D

Share This Page