Added versioning file + dropped config file

This commit is contained in:
2026-03-17 00:09:05 +03:00
parent 24bc006c1d
commit 3210bc39de
4 changed files with 2 additions and 50 deletions

View File

@@ -1,12 +0,0 @@
{
"title": "Digisto POS",
"versioncode": 250310,
"versionname": "0.25.0310-beta",
"codename": "",
"release_date": "2025-02-16",
"build": 310,
"organization_name": "Koaley Group Ltd.",
"organization_domain": "www.digisto.app",
"encryption_key":"",
"encryption_salt":""
}

View File

@@ -1,29 +0,0 @@
{
"admin": {
"organization": ["view", "update", "delete"],
"user_accounts": ["view", "create", "update", "delete"],
"suppliers": ["view", "create", "update", "delete"],
"supply": ["view", "create", "update", "delete"],
"inventory": ["view", "create", "update", "delete"],
"sales": ["view", "create", "update", "delete"]
},
"manager": {
"organization": ["view", "update"],
"user_accounts": ["view"],
"suppliers": ["view", "create", "update"],
"supply": ["view", "create", "update"],
"inventory": ["view", "create", "update"],
"sales": ["view", "create", "update", "delete"]
},
"cashier": {
"organization": ["view"],
"sales": ["view", "create"],
"inventory": ["view"]
},
"stock_manager": {
"organization": ["view"],
"suppliers": ["view"],
"supply": ["view", "create", "update"],
"inventory": ["view", "create", "update"]
}
}

View File

@@ -109,8 +109,6 @@
<file>ui/controls/DsMouseArea.qml</file>
<file>app/digisto/modules/DsModels.qml</file>
<file>ui/js/main.js</file>
<file>configs/permissions-templ.json</file>
<file>configs/app-config.json</file>
<file>ui/controls/DsBusyOrEmptyOrAccessDeniedTableItem.qml</file>
<file>ui/controls/DsComboInputWithLabel.qml</file>
<file>ui/controls/DsTextField.qml</file>

View File

@@ -7,14 +7,9 @@ PermissionManager::PermissionManager(DsController *dsController, QObject *parent
: QObject { parent },
m_dsController(dsController)
{
// Load permission template from the json file
QFile file(QStringLiteral(":/configs/permissions-templ.json"));
auto ok = file.open(QIODevice::ReadOnly);
Q_ASSERT(ok);
// Create QVariantMap out of the template json
m_permissionTemplate =
QJsonDocument::fromJson(file.readAll()).toVariant().toMap();
m_permissionTemplate = QJsonDocument().toVariant().toMap();
// QJsonDocument::fromJson(file.readAll()).toVariant().toMap();
// Connect permission checks for changing user details
connect(dsController, &DsController::loggedUserChanged,