Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • mahara mahara
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • maharamahara
  • maharamahara
  • Repository
Switch branch/tag
  • mahara
  • htdocs
  • auth
  • user.php
Find file BlameHistoryPermalink
  • Richard Mansfield's avatar
    Use artefact method to get user's edit/publish permissions · 7baf61a6
    Richard Mansfield authored Oct 03, 2011
    
    
    The role permissions on group artefacts are stored in the artefact
    object, so we might as well make use of that in the can_edit_artefact
    and can_publish_artefact methods of the User class instead of forcing
    a new query.
    
    Change-Id: I7e5e5ff8e14fc55638a613a9253eb0c35fd60867
    Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
    7baf61a6