View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003490 | Composr | cns_cpfs | public | 2018-01-20 04:26 | 2018-01-20 14:06 |
| Reporter | Joe | Assigned To | Chris Graham | ||
| Severity | Feature-request | ||||
| Status | closed | Resolution | won't fix | ||
| Product Version | |||||
| Fixed in Version | |||||
| Summary | 0003490: CPF value deletion from Database after demotion | ||||
| 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? | ||||
| Tags | No tags attached. | ||||
| Time estimation (hours) | |||||
| Sponsorship open | |||||
|
|
I don't want to do this. Let's imagine a user has a credit card expire and a payment fail, and they get demoted, but they quickly fix it - you wouldn't want all their special data getting wiped. 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. |
|
|
If there's too much Tempcode being squeezed together, you could split it up into page includes ('include' Comcode tag). E.g. have a page for including each field into the master page. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2018-01-20 04:26 | Joe | New Issue | |
| 2018-01-20 13:06 | Chris Graham | Note Added: 0005375 | |
| 2018-01-20 13:06 | Chris Graham | Status | non-assigned => closed |
| 2018-01-20 13:06 | Chris Graham | Assigned To | => Chris Graham |
| 2018-01-20 13:06 | Chris Graham | Resolution | open => won't fix |
| 2018-01-20 14:06 | Chris Graham | Note Added: 0005377 |