#3490 - CPF value deletion from Database after demotion
| Identifier | #3490 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | CPF value deletion from Database after demotion |
| Status | Closed (rejected) |
| Handling member | Chris Graham |
| Addon | cns_cpfs |
| Description | Scenario:
User Ted is in the 'PRO' usergroup. This is a paid membership. Only users of this group have access to a CPF called 'Nickname'. Ted fills out this CPF and it is now displayed in his profile. Ted cancels his subscription and is demoted to the 'Basic' usergroup. Though Ted no longer has access to the CPF, and despite the value now being hidden from his profile, it is still visible under his username in the f_member_custom_fields table. Normally I suppose this wouldn't be an issue for most Composr users, however, throughout my site I reference this 'Nickname' CPF to help personalize greetings. If the user is demoted, the 'Nickname' field is still showing as NON_EMPTY and thus is still displayed even though he no longer has access to it. So long story short, can we make it so when a user is demoted, the field value for those permission based CPF's are removed from the database? |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
It would be better to solve just by some {+START,{$IS_IN_GROUP,... kind of logic around where you're displaying the CPFs. Or with some custom coding.