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

Permissions problem

Discussion in 'XenForo Development Discussions' started by Stepel, Apr 2, 2015.

  1. Stepel

    Stepel Member


    Why doesn't this code:
    XenForo_Model::create('XenForo_Model_PermissionCache')->getContentPermissionsForItem($hookParams['user']['permission_combination_id'], 'node', $node_id);
    return anything with sense?
    Just : view => 1
    Parameters are OK of course.

    Database has been imported from vBulletin.
    After that we did "rebuild cache".

    What should I do to have this permission cache for nodes etc..?
    Last edited: Apr 2, 2015
  2. Stepel

    Stepel Member

    Hmm when is the permission cache saved in database?
  3. Stepel

    Stepel Member

    How can I get permissions for specific user (not visitor) and node ? I can't find function which returns this information. Maybe i should use my own query..
    Last edited: Apr 3, 2015
  4. Stepel

    Stepel Member

    Can anyone say me what will happen if I use "Rebulid Master Data" from "install/update" page?
  5. Stepel

    Stepel Member

    Hmm I deleted record from xf_permission_cache_content for specific content_id and permission_combination_id and I saved permission for node again. Record has beed added but still "empty". Why ?
  6. Stepel

    Stepel Member

    Ok I solved it... :)
    I tried to get permission cache from "node" which type is CATEGORY
    When I changed node_id to one of subforum of this "node" it works OK.

Share This Page