Skip to content

Commit

Permalink
fix: app permissions fix (#1332)
Browse files Browse the repository at this point in the history
* v

* Update satolist.js

* v
  • Loading branch information
maxgithubprofile authored Dec 16, 2024
1 parent 2fcd320 commit 906d73f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions js/lib/apps/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1408,6 +1408,10 @@ var BastyonApps = function (app) {
var givePermission = function (application, permission) {
if (!this.clearPermission(application, permission)) return false

var appdata = localdata[application.manifest.id]

if (!appdata) return false

appdata.permissions.push({
id: permission,
state: 'granted'
Expand All @@ -1428,6 +1432,7 @@ var BastyonApps = function (app) {
}

if (!meta) return false
if (!appdata) return false

appdata.permissions = _.filter(appdata.permissions, (_permission) => {
return _permission.id != permission
Expand All @@ -1441,6 +1446,8 @@ var BastyonApps = function (app) {

var appdata = localdata[application.manifest.id]

if (!appdata) return false

appdata.permissions.push({
id: permission,
state: 'forbid'
Expand Down
4 changes: 3 additions & 1 deletion js/satolist.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ Platform = function (app, listofnodes) {
'PThktEkvkgNeL9G6EDAESNwneUGz9DeugR': true,
'PSdjmyvT9qQZxbYMB7jfmsgKokQtP6KkiX': true,
'P9K1uMNAkhHJGfbMFJXyxs4nBdmowL9rvp': true,
'PU3PEYF6EJRjm6HC2cXJpC5R6vFCU3Vkao': true
'PU3PEYF6EJRjm6HC2cXJpC5R6vFCU3Vkao': true,
'PAqtmQ4pExvpf3cctWDTYyRGmLCsZY24yy': true

}

Expand Down Expand Up @@ -458,6 +459,7 @@ Platform = function (app, listofnodes) {
'PFr6sDvtJq3wJejQce5RJ5L8u1oYKgjW9o',
'PLcjUPjznx5AmBwkLYcrKmLNEwuprSexb3',
'PURejSeNEoJyn8i1147cKfjHweV6rQJRLX',

];

self.whiteList = [
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

"version": "0.9.105",

"versionsuffix": "2",
"versionsuffix": "3",
"cordovaversion": "1.8.105",
"cordovaversioncode": "1801052",
"cordovaversioncode": "1801053",

"description": "Bastyon desktop application",
"author": "Pocketnet Community <[email protected]>",
Expand Down
2 changes: 2 additions & 0 deletions proxy16/node/rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ const publics = {
getbarterondeals: true,
getbarteronoffersdetails: true,
getbarteroncomplexdeals: true,
getbarterongroups : true,
// Jury
getalljury: true,
getjuryassigned: true,
Expand Down Expand Up @@ -562,6 +563,7 @@ RpcClient.callspec = {
getbarterondeals: 'obj',
getbarteronoffersdetails: 'obj',
getbarteroncomplexdeals: 'obj',
getbarterongroups: 'obj',
// Jury
getalljury: '',
getjuryassigned: 'str',
Expand Down

0 comments on commit 906d73f

Please sign in to comment.