ui/userrole.go
func (h *Handler) GetUserRole(tkn string) (*string, error) {
	logger := h.logger.Add("method", "GetUserRole")

	if !h.token.Check(tkn) {
		logger.Warn("access denied")
		return nil, ErrAccessDenied
	}

	return &h.userRole, nil
}
func (h *Handler) GetUserRole(tkn string) (*string, error) {
	logger := h.logger.Add("method", "GetUserRole")

	if !h.token.Check(tkn) {
		logger.Warn("access denied")
		return nil, ErrAccessDenied
	}

	return &h.userRole, nil
}
func ( h * Handler ) GetUserRole ( tkn string ) ( * string , error ) { logger := h . logger . Add ( " " , " " ) if ! h . token . Check ( tkn ) { logger . Warn ( " " ) return nil , ErrAccessDenied } return & h . userRole , nil }
// GetUserRole returns user role.
GetUserRole returns user role .