In EMAScript, to
find out item level permissions in a list/library we don’t have respective
object in
CurrentItem which states with Permission Name. Generally if we do the same in
Server Object Model it returns Permission
Names in string format. This ease our task but
in ECMAScript it
returns in nvarchar format.
For Example, to know
whether item has Read Permission, below is the snippet code.
if (ctx.CurrentItem.PermMask ==
"0xb008431061") { //This value is for Read Permission
}
else {
}
No comments:
Post a Comment