GetSecurityRoleSecurityFunction Stored Procedure

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Stored Procedures >

GetSecurityRoleSecurityFunction Stored Procedure

Navigation: iVend Database Database > Stored Procedures >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

GetSecurityRoleSecurityFunction Stored Procedure

Collapse All Expand All

iVend Database Database : GetSecurityRoleSecurityFunction Stored Procedure

Properties

Creation Date

4/23/2019 7:06 PM

Encrypted

dbimages_boolean-false

Ansi Nulls

dbimages_boolean-true

Parameters

Parameter

Direction

Description

Data Type

Size

@pSecurityRoleKey

In

Reference key of the Security Role

VarWChar

50

@RETURN_VALUE

Return Value

 

Integer

4

Objects that GetSecurityRoleSecurityFunction depends on

 

Database Object

Object Type

Description

Dep Level

SecSecurityFunction table

SecSecurityFunction

Table

Defines a list of all the main modules on which the security needs to be applied. Eg.. Administration, Business partner etc.

1

SecSecurityRoleSecurityFunction table

SecSecurityRoleSecurityFunction

Table

This table defines the security rights on the main modules granted to a specific security role.

1

Procedure Source Code

CREATE PROCEDURE [dbo].[GetSecurityRoleSecurityFunction]

(

@pSecurityRoleKey   nvarchar(50)

)

AS

BEGIN

SET NOCOUNT ON

SELECT f.Id, f.Description, IsNull(s.AccessLevel, '0') 'AccessLevel'

 , IsNull(f.SecurityFunctionKey,'0') 'SecurityFunctionKey'

 , IsNull(s.SecurityRoleSecurityFunctionKey,'0') 'SecurityRoleSecurityFunctionKey'

 , f.OrderBy, @pSecurityRoleKey 'SecurityRoleKey'

 , isnull(f.ShowInLoyaltyStandalone,0) 'ShowInLoyaltyStandalone'

 , s.IsVisibleInMC

FROM SecSecurityFunction f LEFT OUTER JOIN SecSecurityRoleSecurityFunction s

ON  f.SecurityFunctionKey = s.SecurityFunctionKey

AND s.SecurityRoleKey = @pSecurityRoleKey

WHERE  f.isactive=1

ORDER BY f.OrderBy

RETURN

END

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.