简体   繁体   English

ios + Parse.com-将表设为只读

[英]ios + Parse.com - Make table read-only

Today my app was hacked by someone. 今天,我的应用被某人入侵。 They filled 1k rows in my table. 他们填满了我表中的1k行。 I guess that is happened because I don't use users for my app. 我猜想是因为我没有在应用中使用用户。 In my AppDelegate I just have the following: 在我的AppDelegate中,我只有以下内容:

    Parse.enableLocalDatastore()

    // Initialize Parse.
    Parse.setApplicationId("...",
        clientKey: "...")

    // [Optional] Track statistics around application opens.
    PFAnalytics.trackAppOpenedWithLaunchOptions(launchOptions)

How can I grant write access to some tables only for myself? 我如何才能仅授予自己对某些表的写访问权限?

I dont want my app to have a login. 我不希望我的应用程序具有登录名。 I just want to make everyone instead of me a read-only users. 我只想让所有人(而不是我)成为只读用户。

You could set Parse to not allow data entry at all from the app - then data entry is only possible via the parse.com console in your browser. 您可以将Parse设置为完全不允许从应用程序输入数据-然后只能通过浏览器中的parse.com控制台进行数据输入。 in Parse.com, go to Settings -> General and set the Client class creation to No . 在Parse.com中,转到Settings -> General ,并将“ 客户端类”的创建设置为“ No

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM