# `Fun_GetLoginUserType` (function)

> 获取客户查看权限


- **Type:** FUNCTION
- **Returns:** `longtext`
- **Deterministic:** NO
- **SQL data access:** CONTAINS SQL

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sLogin_id` | `varchar(255)` |
| 2 | IN | `sBr_id` | `varchar(255)` |
| 3 | IN | `sSu_id` | `varchar(255)` |

## Body

_Body is not pre-cached. To inspect: `mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE FUNCTION `Fun_GetLoginUserType`'`._

## Narrative

**Business context:** Login-permission helper — intended to flag whether the supplied login is the `sysadmin` super-user (returns `'1'`) so callers can skip data-scope filters.

**What it does:** Selects `sType` from `sftlogininfo` for the given (brand, subsidiary, login). Returns `'1'` if `sType = 'sysadmin'`, else `'0'`.

**Invocation:** Status: appears orphaned. No caller found in any channel (form-master, gdsmodule hooks, other routines, xly-src grep) — candidate for maintainer audit. Note the page header `获取客户查看权限` matches the role of the sibling pair `Fun_GetLookCustomer`/`Fun_GetLookProcess`, which embed the sysadmin check inline instead of delegating here.
