Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
angular-meteor
api
Commits
7431838a
Commit
7431838a
authored
Dec 26, 2019
by
GD-A-150752
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
profile-permission
parent
1ec9f69c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
migrations.ts
server/migrations.ts
+10
-1
No files found.
server/migrations.ts
View file @
7431838a
...
...
@@ -19,7 +19,7 @@ Migrations.add({
rolesCollection
.
insert
({
title
:
'User'
,
permissions
:
[
PERMISSIONS
.
CAN_LOGIN
,
PERMISSIONS
.
CAN_UPDATE_OWN_USER
,
PERMISSIONS
.
CAN_ACCESS_DASHBOARD_PAGE
],
PERMISSIONS
.
CAN_ACCESS_DASHBOARD_PAGE
,
PERMISSIONS
.
CAN_ACCESS_PROFILE
],
description
:
''
,
});
rolesCollection
.
insert
({
...
...
@@ -57,6 +57,15 @@ Migrations.add({
role
:
rolesCollection
.
findOne
({
title
:
'User'
}).
_id
,
},
});
Accounts
.
createUser
({
username
:
'user'
,
password
:
'User1234'
,
email
:
'user@vqode.com'
,
profile
:
{
name
:
'User'
,
role
:
rolesCollection
.
findOne
({
title
:
'User'
}).
_id
,
},
});
}
},
});
...
...
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