strongloop / loopback-example-access-control

An example demonstrating LoopBack access control mechanisms.
Other
370 stars 168 forks source link

how to remove/backout a relation? #51

Closed Radu3000 closed 9 years ago

Radu3000 commented 9 years ago

While going through the tutorial I have incorrectly specified a name for the relation - should be "members" instead of "users".

C:\Projects\StrongLoop\loopback-example-access-control>slc loopback:relation ? Select the model to create the relationship from: team ? Relation type: has many ? Choose a model to create a relationship with: user ? Enter the property name for the relation: users ? Optionally enter a custom foreign key:

superkhau commented 9 years ago

You have to manually empty out the acl property (make it an empty array) in /common/model/your-model.json.

superkhau commented 9 years ago

For future reference, please post questions to https://groups.google.com/forum/#!forum/loopbackjs. See https://github.com/strongloop/loopback/wiki/Reporting-issues#question for more details.