Hi all,
We encountered a minor security issue today. It is possible to run the Periodic GL option "Recalculate ledger periods". This option is also available from the form Ledger. We restricted access on the menu-item so it was not available within a certain role. Then we saw this option was still visible on the form Ledger.
A deeper look learned that a Button control is used. This has only one mehtod:
void clicked()
{
new MenuFunction(menuitemActionStr(LedgerPeriodRecalculation), MenuItemType::Action).run();
}
Does anyone has a clue why a Button control was used instead of a Menu-item button control?