Skip to content

Commit

Permalink
権限を限定的に
Browse files Browse the repository at this point in the history
  • Loading branch information
anzfactory committed Jul 14, 2015
1 parent 65c21d4 commit 00d72e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions QiitaCollection/ParseManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ class ParseManager {

PFUser.enableAutomaticUser()
let defaultACL = PFACL(user: PFUser.currentUser()!)
defaultACL.setPublicReadAccess(true)
defaultACL.setPublicWriteAccess(true)
// 基本的にはprivateなデータを作成する
// もし、publicにしたい時は、save()するときに都度指定して
defaultACL.setPublicReadAccess(false)
defaultACL.setPublicWriteAccess(false)
PFACL.setDefaultACL(defaultACL, withAccessForCurrentUser: true)

// 初回で端末内に保持させるためにもsaveする
Expand Down

0 comments on commit 00d72e9

Please sign in to comment.