Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBQuerier ¶
type PermissionsBackend ¶
type PermissionsBackend struct {
// contains filtered or unexported fields
}
func NewPermissionsBackend ¶
func NewPermissionsBackend(db DBQuerier) *PermissionsBackend
func (*PermissionsBackend) HasObjectPermission ¶
func (pb *PermissionsBackend) HasObjectPermission(r *http.Request, obj interface{}, perms ...string) bool
func (*PermissionsBackend) HasPermission ¶
func (pb *PermissionsBackend) HasPermission(r *http.Request, perms ...string) bool
Click to show internal directories.
Click to hide internal directories.