Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Add default permissions when adding a new type #785

Closed
danielkcz opened this issue Oct 12, 2017 · 2 comments
Closed

Add default permissions when adding a new type #785

danielkcz opened this issue Oct 12, 2017 · 2 comments

Comments

@danielkcz
Copy link
Contributor

What is the current behavior?
When a new type is created within the schema, deployed and then used, I get Insufficient permissions errors.

What is the expected behavior?
I think there should be some sort of warning as part of deployment process that a created type is missing permissions and won't be accessible aside admin access. This is considerably harder compared to adding/updating types through the Console which took care of creating default permissions for type and relations as well.

Another solution that comes to my mind is a boilerplate generator for types (and some other objects) within CLI. I would just specify a name of the type and it to the schema with basic fields (id, createdAt, updatedAt) and with default permissions (could be separate switch argument). That would make things a lot easier.

@kbrandwijk
Copy link
Contributor

kbrandwijk commented Oct 12, 2017

I would like some kind of yeoman like generator. I'm building one with snippets for Atom at the moment.

Regarding the permissions. I believe the decision to not have public permissions by default was a deliberate one (#459), because it's easier to forget to lock something down than running into 'Insufficient Permission' on first use.

@marktani marktani changed the title No default permissions = confusion Add default permissions when adding a new type Oct 12, 2017
@danielkcz
Copy link
Contributor Author

This is kinda obsolete with 1.0 coming, so I am closing it :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants