Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Motion Bank API
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Motion Bank
Services
Motion Bank API
Commits
c3b1e774
Commit
c3b1e774
authored
Jan 24, 2019
by
Anton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove digitanz script
parent
67023f1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
35 deletions
+0
-35
bin/digitanz-fix.js
bin/digitanz-fix.js
+0
-35
No files found.
bin/digitanz-fix.js
deleted
100644 → 0
View file @
67023f1b
const
GenericAPI
=
require
(
'
mbjs-generic-api
'
)
const
run
=
async
function
()
{
const
api
=
new
GenericAPI
()
await
api
.
setup
()
/**
* Configure resources
*/
const
models
=
require
(
'
mbjs-data-models
'
),
Service
=
require
(
'
../src/lib/service
'
)
const
maps
=
new
Service
(
'
maps
'
,
api
,
models
.
Map
)
const
results
=
await
maps
.
_client
.
find
({})
for
(
let
map
of
results
)
{
if
(
map
.
title
&&
map
.
title
.
match
(
/griddle/i
))
{
console
.
log
(
map
.
title
)
await
new
Promise
((
resolve
,
reject
)
=>
{
api
.
_acl
.
removeAllow
(
'
public
'
,
map
.
uuid
,
[
'
get
'
],
err
=>
{
if
(
err
)
return
reject
(
err
)
resolve
()
})
})
await
new
Promise
((
resolve
,
reject
)
=>
{
api
.
_acl
.
allow
(
'
digitanz
'
,
map
.
uuid
,
[
'
get
'
],
err
=>
{
if
(
err
)
return
reject
(
err
)
resolve
()
})
})
}
}
}
run
().
then
(()
=>
process
.
exit
(
0
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment