;;; ---------------------------------------- check that we can get the magic permissions groups through the helper functions ----------------------------------------
;;; ---------------- check that we can get the magic permissions groups through the helper functions -----------------
;;; ---------------------------------------- newly created users should get added to the appropriate magic groups ----------------------------------------
;;; ---------------------- newly created users should get added to the appropriate magic groups ----------------------
(expect
(tt/with-tempUser[{user-id:id}]
(db/exists?PermissionsGroupMembership
...
...
@@ -62,7 +64,8 @@
(expect
(do
;; make sure Crowberto is in the DB because otherwise the code will get snippy when the temp user is deleted since you're not allowed to delete the last member of Admin
;; make sure Crowberto is in the DB because otherwise the code will get snippy when the temp user is deleted since
;; you're not allowed to delete the last member of Admin
;;; -------------- flipping the is_superuser bit should add/remove user from Admin group as appropriate --------------
;;; ---------------------------------------- flipping the is_superuser bit should add/remove user from Admin group as appropriate ----------------------------------------
;; adding user to Admin should set is_superuser -> true