Buttom whith admin

Buttom whith admin

FAGAFAGA Posts: 3Questions: 0Answers: 0
edited December 2012 in Editor
Hello

How to make the button Create, Edit and Delete would show only when I went to the site as an administrator? Please help !

Bola

Replies

  • ulrikeulrike Posts: 39Questions: 1Answers: 0
    Is this question related to datatables?
  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Hi Bola,

    You'd simply initialise the Editor Javascript only when your user is an admin. I presume you have a method for telling if the user is admin or not, so you'd just wrap that around the Editor instance creation code.

    Allan
  • FAGAFAGA Posts: 3Questions: 0Answers: 0
    Thanks, corrected the code - it works :)Very useful plug-ins and scripts, thanks again!
This discussion has been closed.