investigating quota_jrProfile_privacy_changes and admin

SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
This has had me confused for a while:

If a profile quota has quota_jrProfile_privacy_changes set to "off", admin still sees the privacy options in profile settings but changing the setting has no effect.

Shouldn't that dropdown be disabled, or not appear at all? Or should admin be able to override that setting for a profile?


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 04/29/18 01:43:48PM
paul
@paul
6 years ago
4,326 posts
That setting will stop the user from changing his profile privacy. Admin can always do it to any profile. Admin will always see any profile regardless of its privacy setting.
Is that not happening?


--
Paul Asher - JR Developer and System Import Specialist
SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
Hi Paul

Admin can always see the profile, but when Admin changes a profiles privacy it doesn't make any difference.

From jrProfile_show_profile line 2506:
        // get profile privacy
        $priv = $_rt['profile_private'];
        if (isset($_rt['quota_jrProfile_privacy_changes']) && $_rt['quota_jrProfile_privacy_changes'] == 'off') {
            $priv = (int) $_rt['quota_jrProfile_default_privacy'];
        }



--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
6 years ago
10,148 posts
Yeah that field should probably be hidden if changing it does nothing - I'll check it out.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
Hi Brian

Will it be that the field is simply hidden in the form rather than the profile obeying the setting regardless of privacy_changes?

If so I can change my code to switch between quotas, but just wanted to check first.

Thanks


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
Something must be changing when the field is changed because my js video player stops playing in safari when the profile is private:
https://www.jamroom.net/the-jamroom-network/forum/my_posts/55700/video-stream-in-safari


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

Tags