{"action":"opened","issue":{"url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/455","repository_url":"https://api.github.com/repos/jagi/meteor-astronomy","labels_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/455/labels{/name}","comments_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/455/comments","events_url":"https://api.github.com/repos/jagi/meteor-astronomy/issues/455/events","html_url":"https://github.com/jagi/meteor-astronomy/issues/455","id":167056671,"number":455,"title":"How to restrict the fields that can be updated by the client?","user":{"login":"Faberle","id":2871385,"avatar_url":"https://avatars.githubusercontent.com/u/2871385?v=3","gravatar_id":"","url":"https://api.github.com/users/Faberle","html_url":"https://github.com/Faberle","followers_url":"https://api.github.com/users/Faberle/followers","following_url":"https://api.github.com/users/Faberle/following{/other_user}","gists_url":"https://api.github.com/users/Faberle/gists{/gist_id}","starred_url":"https://api.github.com/users/Faberle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Faberle/subscriptions","organizations_url":"https://api.github.com/users/Faberle/orgs","repos_url":"https://api.github.com/users/Faberle/repos","events_url":"https://api.github.com/users/Faberle/events{/privacy}","received_events_url":"https://api.github.com/users/Faberle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-22T14:24:35Z","updated_at":"2016-07-22T14:24:35Z","closed_at":null,"body":"How can I prevent the client from updating credits? While still being able to update the name.\r\n(Without using an Event to check for every field if its ok to update that specific one)\r\n\r\n```javascript\r\nconst UserProfiles = new Mongo.Collection('userProfiles');\r\n\r\n const UserProfile = Class.create({\r\n    name: 'UserProfile',\r\n    collection: UserProfiles,\r\n    secured: {\r\n        insert: true,\r\n        update: true\r\n    },\r\n    fields: {\r\n        name: {\r\n            type: String\r\n        },\r\n       credits: {\r\n            type: Number\r\n        },\r\n    }\r\n});\r\n```"}}
{"actor":{"display_login":"Faberle"}}