admin

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package admin подключение основных хандлеров для панели администратора

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAdminPermissions

func CheckAdminPermissions(userId int) bool

CheckAdminPermissions проверка пользователя на права администратора в екстранете

func CheckPermissions

func CheckPermissions(route string) http.HandlerFunc

CheckPermissions is not complete yet

func GetFields

func GetFields(tableName string) (fields forms.FieldsTable)

GetFields return field list (OBSOLETE)

func GetUserPermissionForPageByUserId

func GetUserPermissionForPageByUserId(userId int, url, action string) bool

GetUserPermissionForPageByUserId проверка прав пользователя на доступ по url с учётом проверки на права администратора (доступны все области)

func HandlerExec

func HandlerExec(w http.ResponseWriter, r *http.Request)

HandlerExec executes sql-query on post parameters

func HandlerSignUpAnotherUser

func HandlerSignUpAnotherUser(w http.ResponseWriter, r *http.Request)

HandlerSignUpAnotherUser is TODO: comments

func RegisterRoutes

func RegisterRoutes(MyMux *http.ServeMux)

RegisterRoutes link handlers in htttp.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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