XModPro

Permissions - By Security Role

Jeff M. Jeff M. asked Apr 15, 2015
Active Apr 15 · Viewed 2114 times
<p>Hello..</p><p>We use XMP for our home page banner items. &nbsp;Currently, only administrators can add/edit/delete these items.</p><p>But recently, we're starting to get requests from other departments which want to add their own banner items.</p><p>But the issue is that we don't want them to have the ability to add/edit/delete the other departments banner items.</p><p>I was thinking, the easiest way to accomplish this is to have a column within the Database which stores the Security Role of the user that first added the banner item and is responsible for the banner item.</p><p>Then have the Template look at this field and look at the current logged-in users Security Role and if they match, then the Edit and Delete icons will show. &nbsp;If they don't match, then they don't show.</p><p>But, I looked and can't seem to find to grab the Security Role of the user which is logged in.</p><p>Is there a way to accomplish this? &nbsp;Thanks..</p>

1 Answer

Loading answers...