base

package
v0.0.0-...-5e0bae8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2017 License: GPL-3.0, LGPL-3.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const CurrencyDisplayPattern string = `(\w+)\s*(?:\((.*)\))?`
View Source
const (
	// MODULE_NAME is the name of this module
	MODULE_NAME string = "base"
)

Variables

View Source
var (
	PartnerWarningMessage = types.Selection{
		"no-message": "No Message",
		"warning":    "Warning",
		"block":      "Blocking Message",
	}
	PartnerWarningHelp = `` /* 204-byte string literal not displayed */

)
View Source
var (
	// GroupSystem is given to users who are allowed to modify general settings
	GroupSystem *security.Group
	// GroupUser is the group for Employees
	GroupUser *security.Group
	// GroupMultiCurrency displays data to work in a multi-currency context
	GroupMultiCurrency *security.Group
	// GroupPartnerManager is given to users who are allowed to manage contacts
	GroupPartnerManager *security.Group
	// GroupMultiCompany displays data to work in a multi-company context
	GroupMultiCompany *security.Group
	// GroupPortal is granted to portal users
	GroupPortal *security.Group
	// GroupPublic is granted to external users
	GroupPublic *security.Group
	// GroupERPManager can modify access rights for other users
	GroupERPManager *security.Group
	// GroupTechnicalFeatures can see and modify technical parameters of the ERP
	GroupTechnicalFeatures *security.Group
)

Functions

func CompanyGetUserCurrency

func CompanyGetUserCurrency(env models.Environment, fMap models.FieldMap) interface{}

CompanyGetUserCurrency returns the currency of the current user's company if it exists or the default currency otherwise

Types

type BaseAuthBackend

type BaseAuthBackend struct{}

BaseAuthBackend is the authentication backend of the Base module Users are authenticated against the User model in the database

func (*BaseAuthBackend) Authenticate

func (bab *BaseAuthBackend) Authenticate(login, secret string, context *types.Context) (uid int64, err error)

Authenticate the user defined by login and secret.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL