Documentation ¶
Overview ¶
Package admin подключение основных хандлеров для панели администратора
Index ¶
- func CheckAdminPermissions(userId int) bool
- func CheckPermissions(route string) http.HandlerFunc
- func GetFields(tableName string) (fields forms.FieldsTable)
- func GetUserPermissionForPageByUserId(userId int, url, action string) bool
- func HandlerExec(w http.ResponseWriter, r *http.Request)
- func HandlerSignUpAnotherUser(w http.ResponseWriter, r *http.Request)
- func RegisterRoutes(MyMux *http.ServeMux)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAdminPermissions ¶
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 ¶
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 ¶
RegisterRoutes link handlers in htttp.Handler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.