Hi Detlef,
Take a boolean attribute dynamically inside your widget & set the visibility on the button on the basis of true false.
Go to your mendix page or where you want to use the widget & set the true false value according to userRoles or user according to your need.