-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from recogito/develop
Merge develop into main
- Loading branch information
Showing
17 changed files
with
431 additions
and
894 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ node_modules | |
.DS_Store | ||
priivate-scripts | ||
hold | ||
./supabase/functions/* | ||
/supabase/functions/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CREATE OR REPLACE FUNCTION delete_invite(_invite_id uuid) RETURNS bool AS $$ | ||
DECLARE _project_id UUID; | ||
BEGIN | ||
SELECT INTO _project_id i.project_id FROM public.invites i WHERE id = _invite_id; | ||
IF is_admin_project(auth.uid(), _project_id) OR is_admin_organization(auth.uid()) THEN | ||
DELETE FROM public.invites WHERE id = _invite_id; | ||
RETURN TRUE; | ||
END IF; | ||
RETURN FALSE; | ||
END; | ||
$$ LANGUAGE plpgsql SECURITY DEFINER; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.