cancel
Showing results for 
Search instead for 
Did you mean: 

Use of prototype

michaelc
Champ on-the-rise
Champ on-the-rise
Quick question : Can I extend the user in the back end by the use of Prototype ?
Seems logical, I wanted to extend the user with another Boolean like isAdmin

but I see the backend JS code all ways extend model.
1 REPLY 1

michaelc
Champ on-the-rise
Champ on-the-rise
Nope does not seem to work the same as in Javascript

I tried user.prototype.createSite = createSite; and it errors with createSite is undefined.
Bummer it would have been very usable.