                    member? :member
                    :else   :anonymous)
         base-access {:role role
-                     :premium? premium?}
-        premium-viewer-access (if premium? :viewer :author)]
+                     :premium? premium?}]
     (cond
       ;; an admin of this org's team
       ((set admin) (:team-id org))

                               :author
                               :viewer)
        base-access {:role     role
                     :premium? premium?}
        ;; viewer role is allowed only on premium
        premium-viewer-role (if premium? :viewer :author)]
    (cond

      ;; a named author of this private board


      ;; a team member of this org
      ((set teams) (:team-id org))
      (merge base-access {:access-level :viewer})

      ;; public access to orgs w/ at least 1 public board AND that allow public boards
      (and
