question

martins avatar image
martins asked martins commented

Admin only to use app

Hi, I am developing a app for clover that creates a custom tender, but some configurations are defined within the initialisation of that app. Is it possible to make that app only accessible by the admin?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

James Tickett avatar image
James Tickett answered martins commented

Hi Martins,

I've been using Employee object with EmployeeConnector like so...

1) Connect EmployeeConnector

employeeConnector = new EmployeeConnector(this, account, null);
employeeConnector.connect();

2) Fetch Employee object

employee = employeeConnector.getEmployee();

3) Check the role of Employee object matches a specific AccountRole.

if (employee.getRole().equals(AccountRole.ADMIN))
{
//do something
}
else
{
//exit app
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

martins avatar image martins commented ·

Thank you JTickett, it works fine :)

0 Likes 0 ·

Welcome to the
Clover Developer Community