We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37686
    • 94 Posts
    Dear somebody,

    I have a problem with the package sekUserGalleries
    I use the
    [[!album.manage? &tplFormAlbum=`album.form.primary` &tplDeleteConfirmation=`album.delete` &sekusergalleries.album_manage_resource_id=`5`]]

    snippet to create an album.
    This data in this form will save properly, however when i want to try the album item manage, it keep giving me the message 'YOU Are not the owner of this album'

    I use this snippet call for it:

    [[!album.items.manage? &tplItemsForm=`album.items.form` &sekusergalleries.items_manage_resource_id=`3`]]


    The number 3 is the resource id of the template this snippet call is entered.



    bigger picture:
    http://farm9.staticflickr.com/8300/8008798439_b5b30edb1d_b.jpg
      • 37686
      • 94 Posts
      I think it has something to do with the public function isOwner in the managealbumitems.class.php
      $sekug_album is empty
       public function isOwner(){
             
              $sekug_album = $this->modx->getCollection('sekugAlbums', array(
                  'id' => $this->getProperty('album'),
                  'album_user' => $this->modx->user->get('id')
              ));
      	
      	
              if($sekug_album != null){
                  return true;
              }else{
                  return false;
              }
          }