@@ -319,41 +319,72 @@ var dashboard = new ParseDashboard({
319
319
320
320
### Makings users read-only
321
321
322
+ Make sure you specify the ` readOnlyMasterKey ` for the apps that you want to use read-only feature in "apps" configuration.
322
323
You can mark a user as a read-only user:
323
324
324
325
``` json
325
326
{
326
- "apps" : [{"..." : " ..." }],
327
+ "apps" : [
328
+ {
329
+ "appId" : " myAppId1" ,
330
+ "masterKey" : " myMasterKey1" ,
331
+ "readOnlyMasterKey" : " myReadOnlyMasterKey1" ,
332
+ "serverURL" : " myURL1" ,
333
+ "port" : 4040 ,
334
+ "production" : true
335
+ },
336
+ {
337
+ "appId" : " myAppId2" ,
338
+ "masterKey" : " myMasterKey2" ,
339
+ "readOnlyMasterKey" : " myReadOnlyMasterKey2" ,
340
+ "serverURL" : " myURL2" ,
341
+ "port" : 4041 ,
342
+ "production" : true
343
+ }
344
+ ],
327
345
"users" : [
328
- {
329
- "user" :" user1" ,
330
- "pass" :" pass1" ,
331
- "readOnly" : true ,
332
- "apps" : [{"appId" : " myAppId1" }, {"appId" : " myAppId2" }]
333
- },
334
- {
335
- "user" :" user2" ,
336
- "pass" :" pass2" ,
337
- "apps" : [{"appId" : " myAppId1" }]
338
- } ]
346
+ {
347
+ "user" :" user1" ,
348
+ "pass" :" pass1" ,
349
+ "readOnly" : true ,
350
+ "apps" : [{"appId" : " myAppId1" }, {"appId" : " myAppId2" }]
351
+ },
352
+ {
353
+ "user" :" user2" ,
354
+ "pass" :" pass2" ,
355
+ "apps" : [{"appId" : " myAppId1" }]
356
+ }
357
+ ]
339
358
}
340
359
```
341
360
342
361
This way ` user1 ` will have a readOnly access to ` myAppId1 ` and ` myAppId2 `
343
362
344
363
### Making user's apps readOnly
345
364
365
+ Make sure you specify the ` readOnlyMasterKey ` for the apps that you want to use read-only feature in "apps" configuration.
346
366
You can give read only access to a user on a per-app basis:
347
367
348
368
``` json
349
369
{
350
- "apps" : [{"..." : " ..." }],
370
+ "apps" : [
371
+ {
372
+ "appId" : " myAppId1" ,
373
+ "masterKey" : " myMasterKey1" ,
374
+ "readOnlyMasterKey" : " myReadOnlyMasterKey1" ,
375
+ "serverURL" : " myURL" ,
376
+ "port" : 4040 ,
377
+ "production" : true
378
+ },
379
+ {"..." : " ..." }
380
+ ],
351
381
"users" : [
352
- {
353
- "user" :" user1" ,
354
- "pass" :" pass1" ,
355
- "apps" : [{"appId" : " myAppId1" , "readOnly" : true }, {"appId" : " myAppId2" }]
356
- } ]
382
+ {
383
+ "user" :" user" ,
384
+ "pass" :" pass" ,
385
+ "apps" : [{"appId" : " myAppId" , "readOnly" : true }, {"appId" : " myAppId2" }]
386
+ }
387
+ ]
357
388
}
358
389
```
359
390
0 commit comments