Ignore:
Timestamp:
Jan 22, 2007, 11:16:43 AM (16 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #476: "Import" button is not shown even if the user has permission to use an
import plugin in a given context

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/common-queries.xml

    r3050 r3074  
    17861786      JOIN plg.guiContexts gcx
    17871787      LEFT JOIN plg.configurations cfg
    1788         WITH cfg.owner.id = :owner OR cfg.itemKey.id IN (:itemKeys) OR cfg.projectKey.id IN (:projectKeys)
     1788      WITH true = :hasConfigPermission OR cfg.owner.id = :owner
     1789        OR cfg.itemKey.id IN (:itemKeys) OR cfg.projectKey.id IN (:projectKeys)
    17891790      WHERE
    1790       (plg.owner.id = :owner OR plg.itemKey.id IN (:itemKeys) OR plg.projectKey.id IN (:projectKeys))
     1791        (true = :hasPluginPermission OR plg.owner.id = :owner
     1792        OR plg.itemKey.id IN (:itemKeys) OR plg.projectKey.id IN (:projectKeys))
    17911793      AND gcx.itemType = :itemType AND gcx.contextType = :contextType
    17921794      AND (
Note: See TracChangeset for help on using the changeset viewer.