Jake Vanderwerf
2026-08-26 ccf5e61a075c35d24befc175994b5cb8957ca322
inc/rest/routes/Invitations.php
@@ -88,8 +88,8 @@
      ];
      // Check cache
      $key = $this->cache->generateKey($args);
      if ($cached = $this->cache->get($key)) {
      if ($cached = $this->cache->get($args)) {
         return $this->success($cached);
      }
@@ -99,7 +99,7 @@
         : $this->getUserInvitations($args);
      // Cache result
      $this->cache->set($key, $result);
      $this->cache->set($args, $result);
      return $this->success($result);
   }
@@ -107,7 +107,7 @@
   /**
    * Get invitations for a specific term
    */
   protected function getTermInvitations(array $args): array
   public function getTermInvitations(array $args): array
   {
      // Check permission
      if (!Roles::getInstance()()->isManager($args['user'], $args['to_term'])) {