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

Tag "HasPermission" can result in sql fatal error in some cases

    XMLWordPrintable

    Details

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

      Description

      Tag "HasPermission" (only for category items) is used to check if current user has given permission. Usually it's used from inside of <inp2:m_if .../> tag like this:

      <inp2:m_if check="n_HasPermission" permissions="NEWS.ADD|NEWS.ADD.PENDING">
      show, when have permission
      </inp2:m_if>

      In "advanced" theme it's used from within <inp2:m_DefineElement .../> tag in lists and on category item details page.

      However, when such tag is used after items were already printed, then it produces database query leading to fatal error.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: