•  · 12 friends

Photo Edit (Visibility bug)

Uploading a photo uses BxPhotosFormUpload class which is fine and we can adjust privacy of the photo through it. However, editing the photo uses BxPhotosFormEntry class which inherits from BxBaseModFilesFormUpload. Therefore, when editing the photo, the Visibility (allow_view_to) field shows privacy options for 'files' with 'Public' and 'Participants'. No options for 'Friends', 'Relations'.

0 0 0 0 0 0
  • 93
Replies (2)
  • Hello Scholar !

    Sorry, but the Visibility option doesn't depend on the parent and child classes of uploader forms. It depends only on `sys_objects_privacy` table records for example like in Groups:

    ('bx_groups_allow_view_to', 'bx_groups', 'view', '_bx_groups_form_profile_input_allow_view_to', '3', '', 'bx_groups_data', 'id', 'author', 'BxGroupsPrivacy', 'modules/boonex/groups/classes/BxGroupsPrivacy.php'),

    0 0 0 0 0 0
    • Hello Scholar !

      Sorry, but the Visibility option doesn't depend on the parent and child classes of uploader forms. It depends only on `sys_objects_privacy` table records for example like in Groups:

      ('bx_groups_allow_view_to', 'bx_groups', 'view', '_bx_groups_form_profile_input_allow_view_to', '3', '', 'bx_groups_data', 'id', 'author', 'BxGroupsPrivacy', 'modules/boonex/groups/classes/BxGroupsPrivacy.php'),

      Hi LeonidS,
      when uploading a new photo, this is what appears under 'Visibility':

      image_transcoder.php?o=bx_froala_image&h=3783&dpx=1&t=1593945024
      however, when editing the photo, the visibility list shows the following ('Files' module is not installed, therefore the language keys are not showing properly):

      image_transcoder.php?o=bx_froala_image&h=3784&dpx=1&t=1593946557choosing _bx_files_privacy_public makes the photo hidden. the bx_photos_entries table in that case shows the value 'a' instead of expected value of '3' in allow_view_to column.

      the main difference i found between 'photos' module and 'videos' or 'posts' modules is that 'photos' module uses BxPhotosFormEntry class which inherits from BxBaseModFilesFormUpload

      any idea how to fix this? 

      0 0 0 0 0 0
      Not logged in users can't 'Comments Post'.
      2
      1
      Added:
      Category:

      UNA - Social Media Software Framework

      Close