<< Click to Display Table of Contents >> Navigation: iVend Database Database > Stored Procedures > GetSecurityRoleSecuritySubFunction Stored Procedure |
Navigation: iVend Database Database > Stored Procedures >
iVend 6.6 Database Help
GetSecurityRoleSecuritySubFunction Stored Procedure
Collapse All Expand All
iVend Database Database : GetSecurityRoleSecuritySubFunction Stored Procedure |
Properties
Creation Date |
4/23/2019 7:06 PM |
Encrypted |
|
Ansi Nulls |
Parameters
Parameter |
Direction |
Description |
Data Type |
Size |
@pSecurityRoleKey |
In |
Reference key of the Security Role |
VarWChar |
50 |
@pSecurityFunctionKey |
In |
Reference key of the Security Function |
VarWChar |
50 |
@RETURN_VALUE |
Return Value |
|
Integer |
4 |
Objects that GetSecurityRoleSecuritySubFunction depends on
|
Database Object |
Object Type |
Description |
Dep Level |
Table |
This table defines the security rights on the sub modules granted to a specific security role. |
1 |
||
Table |
Defines a list of all the sub modules under the main module on which the security needs to be applied. |
1 |
Procedure Source Code
CREATE PROCEDURE [dbo].[GetSecurityRoleSecuritySubFunction] ( @pSecurityRoleKey nvarchar(50), @pSecurityFunctionKey nvarchar(50) ) AS BEGIN SET NOCOUNT ON SELECT f.Id, f.Description, IsNull(s.AccessLevel, '0') 'AccessLevel' , IsNull(f.SecuritySubFunctionKey, '0') 'SecuritySubFunctionKey' , IsNull(f.SecurityFunctionKey, '0') 'SecurityFunctionKey' , IsNull(s.SecurityRoleSecuritySubFunctionKey, '0') 'SecurityRoleSecuritySubFunctionKey' , f.OrderBy, IsNull(s.SecurityRoleKey, '0') 'SecurityRoleKey' , isnull(f.ShowInLoyaltyStandalone, '0') 'ShowInLoyaltyStandalone' , f.IsBooleanType , s.IsVisibleInMC FROM SecSecuritySubFunction f LEFT OUTER JOIN SecSecurityRoleSecuritySubFunction s ON f.SecuritySubFunctionKey = s.SecuritySubFunctionKey AND IsNull(s.SecurityRoleKey, '0') = @pSecurityRoleKey WHERE f.isactive=1 And f.SecurityFunctionKey = @pSecurityFunctionKey ORDER BY f.OrderBy RETURN END |
See Also
© 2019 All Rights Reserved.
Send comments on this topic.