Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-710

Category-based permission check not working on Home Page

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.1-B1
    • Fix Version/s: 5.1.1-B2
    • Component/s: Front End
    • Labels:
      None

      Description

      Tags "m_CheckPermission" and "c_HasPermission" doesn't work, when used on home page (index.tpl template).

      This happens, because current category is detected as "0" on that template, however it's 1 (ID of "Content"/"Home" category). In 4.x versions of In-Portal it indeed was 0. I supposed not all places were properly adapted to such ID change.

      I propose, to set current category id ("m_cat_id" variable) to actual ID of "Content"/"Home" category, when it's equals to "0".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                phil Phil Banks
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: