databrary-1: Databrary

Safe HaskellNone
LanguageHaskell2010

Controller.Party

Synopsis

Documentation

getParty :: Maybe Permission -> PartyTarget -> Handler Party Source #

Ensure the current user has the requested permission for the given party.

viewParty :: ActionRoute (API, PartyTarget) Source #

viewPartyEdit :: ActionRoute PartyTarget Source #

viewPartyDelete :: ActionRoute (Id Party) Source #

postParty :: ActionRoute (API, PartyTarget) Source #

createParty :: ActionRoute API Source #

Create a new party, starting from blankParty, then overlaying data extracted from request. Since this overlaps with how registration creates an account/party combo, this is only used when creating parties manually by a superadmin, such as creating institution parties which don't have an account.

deleteParty :: ActionRoute (Id Party) Source #

viewAvatar :: ActionRoute (Id Party) Source #

queryParties :: ActionRoute API Source #

Handle route to find parties by the provided PartyFilter.

adminParties :: ActionRoute () Source #