juliocamarero/liferay-portal — pull request #2263 by moltam89 (2013-08-05 08:04:30+00:00)
Title: [TECHNICAL-SUPPORT] LPS-38432 ADD_ARTICLE permission is not enough to add new Web Content from Structure with Default Values 

Hi Julio,

Tibi has asked me, to forward his list of the possible use cases, which can be helpful, so I'm copying it here:

=== Cases for edit_article.jsp

1. Edit Structure Default Values - 1st time
- article == null >>> article.isNew() never reached
- articleId == ""
- classPK > 0
- classNameId > 0
- structureId > 0

>>> Should require ADD_ARTICLE permission

2. Edit Structure Default Values - 2nd time
- article != null >>> article.isNew() == false
- articleId > 0
- classPK > 0
- classNameId > 0
- structureId > 0

>>> Should require UPDATE permission

3. Add new Web Content using a Structure WITH Default Values
- article != null && article.isNew() == true
- articleId == null
- classPK == 0
- classNameId == 0
- structureId > 0

>>> Should require ADD_ARTICLE permission

4. Add new Web Content using a Structure WITHOUT Default Values
- article == null
- articleId == null
- classPK == 0
- classNameId == 0
- structureId > 0

>>> Should require ADD_ARTICLE permission

5. Add new Web Content from Basic Web Content
- article == null
- articleId == null
- classPK == 0
- classNameId == 0
- structureId == 0
>>> Should require ADD_ARTICLE permission

6. Edit existing Web Content

>>> Should require UPDATE permission

Tamás