Skip to content

Make hasAdminAccess depend only on corpus, not element

ml bonhomme requested to merge disable-create-process into master

closes #1193 (closed)

   return this.isVerified && (
        (this.elementId && this.canAdminElement(this.elementId)) ||
        (this.corpus && this.canAdmin(this.corpus))
      )

made it so that it looked like a user could create a process on a folder they created (canAdminElement on the folder) when they did not have admin access to the corpus.

Merge request reports

Loading