≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
Buttom whith admin
Buttom whith admin
FAGA
Posts: 3
Questions: 0
Answers: 0
December 2012
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
ulrike
Posts: 39
Questions: 1
Answers: 0
December 2012
Is this question related to datatables?
allan
Posts: 65,813
Questions: 1
Answers: 10,949
Site admin
December 2012
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
FAGA
Posts: 3
Questions: 0
Answers: 0
December 2012
Thanks, corrected the code - it works :)Very useful plug-ins and scripts, thanks again!
This discussion has been closed.
Replies
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