'Save and add another' is displayed even without add permission
|Reported by:||Silviu Julean <sjulean@…>||Owned by:||nobody|
|Severity:||Keywords:||newforms admin add permission|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Even if a user does not have add permission for a certain model, the 'Save and add another' button (or 'Save as', according to the model admin save_as option) is displayed.
The expected behavior is to hide that button when the user doesn't have the add permission.
I have attached a (trivial) patch against newforms-admin r6442.