Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateTenant ¶
type CreateTenant struct { Token string `json:"token"` Name string `json:"name"` Subdomain string `json:"subdomain"` UserClaims *models.OAuthClaims }
CreateTenant is the input model used to create a tenant
func (*CreateTenant) IsAuthorized ¶
func (i *CreateTenant) IsAuthorized(user *models.User) bool
IsAuthorized returns true if current user is authorized to perform this action
type Idea ¶
Idea represents an unsaved idea
func (*Idea) IsAuthorized ¶
IsAuthorized returns true if current user is authorized to perform this action
type NewComment ¶
type NewComment struct {
Content string `json:"content"`
}
NewComment represents a new comment
func (*NewComment) IsAuthorized ¶
func (c *NewComment) IsAuthorized(user *models.User) bool
IsAuthorized returns true if current user is authorized to perform this action
type SetResponse ¶
SetResponse represents the action to update an idea response
func (*SetResponse) IsAuthorized ¶
func (input *SetResponse) IsAuthorized(user *models.User) bool
IsAuthorized returns true if current user is authorized to perform this action
type UpdateTenantSettings ¶
type UpdateTenantSettings struct { Title string `json:"title"` Invitation string `json:"invitation"` WelcomeMessage string `json:"welcomeMessage"` UserClaims *models.OAuthClaims }
UpdateTenantSettings is the input model used to update tenant settings
func (*UpdateTenantSettings) IsAuthorized ¶
func (input *UpdateTenantSettings) IsAuthorized(user *models.User) bool
IsAuthorized returns true if current user is authorized to perform this action