Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "
- ПРОВЕРКИ ДОСТУПА В МОДУЛЯХ - ПРИМЕРЫ
- "
- Таблица Getitems "if(dbo.cm_hasRight(@username, 'crm','seller')=0) begin
- select 1 where 1=0
- select 0
- select 'Нет доступа' EmptyText
- return
- end "
- Таблица или форма некое действие "if(dbo.cm_hasRight(@username, 'crm','seller')=0) begin
- select 0 Result, 'Нет доступа' Msg
- return
- end "
- Форма GetItem "if(dbo.cm_hasRight(@username, 'crm','seller')=0) begin
- select 1
- select '{""title"": ""Нет доступа"", ""type"": ""dagner"" }' NoForm
- return
- end "
- Страница "declare @username nvarchar(max) = (select value from @urlParameters where [key]='username')
- if(dbo.cm_hasRight(@username, 'crm','seller')=0) begin
- select 1
- select '/' RedirectUrl
- return
- end "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement