Skip to content

Commit

Permalink
Remote Settings fetch patch
Browse files Browse the repository at this point in the history
  • Loading branch information
coasterteam authored Sep 4, 2021
1 parent 463b525 commit 64c865c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions MainModule/Server/Core/Remote.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,20 @@ return function(Vargs)

--G_Access = true;
G_Access_Key = true;
WebPanel_ApiKey = true;
--G_Access_Perms = true;
--Allowed_API_Calls = true;
}

if type(setting) == "table" then
ret = {}
for i,set in pairs(setting) do
if Defaults[set] and not (blocked[set] and not level>=5) then
if Defaults[set] and not (blocked[set] and not level>=900) then
ret[set] = Defaults[set]
end
end
elseif type(setting) == "string" then
if Defaults[setting] and not (blocked[setting] and not level>=5) then
if Defaults[setting] and not (blocked[setting] and not level>=900) then
ret = Defaults[setting]
end
end
Expand Down Expand Up @@ -202,6 +203,8 @@ return function(Vargs)
Trello_SecondaryBoards = true;
Trello_AppKey = true;
Trello_Token = true;

WebPanel_ApiKey = true;

--G_Access = true;
G_Access_Key = true;
Expand All @@ -212,12 +215,12 @@ return function(Vargs)
if type(setting) == "table" then
ret = {}
for i,set in pairs(setting) do
if Settings[set] and not (blocked[set] and not level>=5) then
if Settings[set] and not (blocked[set] and not level>=900) then
ret[set] = Settings[set]
end
end
elseif type(setting) == "string" then
if Settings[setting] and not (blocked[setting] and not level>=5) then
if Settings[setting] and not (blocked[setting] and not level>=900) then
ret = Settings[setting]
end
end
Expand Down

0 comments on commit 64c865c

Please sign in to comment.