Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Javascript is not loading for Read-level users

$
0
0

The following code below is supposed to display a status bar message but doesn't display for users with Read level or less permissions. At Contribute or higher they can see the status bar. I've tried just an javascript alert and it kicks off for Read users but this won't. I've also tried SP.SOD.executeFunc but get the same result.

Thanks for any help!

<script type="text/javascript">

var statusID = ' ';
ExecuteOrDelayUntilScriptLoaded(AddStatusMethod, "sp.js");
function AddStatusMethod()
{
this.statusId = SP.UI.Status.addStatus("NewsFlash", "Message");
SP.UI.Status.setStatusPriColor(this.statusId, "yellow");
}
</script>


Doug S


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>