How to hide alter button but enable it logging in as admin?
What and where had I configure anywhere?
Thankful for a hint
Georg
Printable View
How to hide alter button but enable it logging in as admin?
What and where had I configure anywhere?
Thankful for a hint
Georg
Hi Georg,
Use a role. Admin will need to sign in.
Regards,
Yvonne
thank you, Yvonne!
so far it is clear. More accurate:
I have set up unauthenticated access. For the general public, I would like to hide the Add and Edit symbols in the navigation bar and only show them for a specific user with a login. So only this user is allowed to change.
Hi Georg,
You can use the Page hideActionBarButtons() method to control which buttons are displayed in the Page actionbar, e.g.
Regards,Code:////////////////////////////////////////////////////////////////
// Event delegate for 'activate' event
function page1_activate()
{
if (Lianja.evaluate("username()") == "admin") {
Lianja.get("page1").hideActionBarButtons("");
} else {
Lianja.get("page1").hideActionBarButtons("Add,Edit,Delete,Cancel,Save");
}
};
Yvonne
Thank you very much, Yvonne!
That is it what I was searching for.