[SOLVED] Object owner permissions

mareluna
mareluna's picture

Joined: 2006-11-05
Posts: 41
Posted: Wed, 2008-02-20 22:03

Now, this plugin force the permission [core] delete item to owner user.

But how can i change this permission in "No restriction" ? (so the owner can edit/delate, etc...)
What have I to change in the code ?

Hopeing to have an help (at least this time), because now I change this permission by hand for every new photo inserted :(
Thank You


Versione di Gallery = 2.2.4 core 1.2.0.6
Versione PHP = 4.4.7 apache2handler
Webserver = Apache/2.0.52 (CentOS)

 
ZokiBoSS

Joined: 2008-04-26
Posts: 5
Posted: Sat, 2008-05-03 20:44

Great module, I were reading all the posts, and at the end the files were created, able to download :P.. Thanks guys, it really helped me a lot. Regards.

 
smilem

Joined: 2009-02-25
Posts: 118
Posted: Sun, 2009-03-01 18:13

Hi, just tried this on gallery-2.3-typical-en.

My file ItemAddAlbum.inc has different lines in it:

/* Figure out where to redirect upon success */
$redirect['itemId'] = $instance->getId();
$ret = GalleryCoreApi::assertHasItemPermission($instance->getId(), 'core.edit');
if (empty($ret)) {
$redirect['view'] = 'core.ItemAdmin';
$redirect['subView'] = 'core.ItemEdit';
$redirect['editPlugin'] = 'ItemEditAlbum';
}

Trie to make it like above but "edit permissions" link is still there in album, in photos on left side bar.
HELP.

 
alexxfender

Joined: 2009-05-05
Posts: 12
Posted: Thu, 2009-06-04 07:55

Going back to the start..

Quote:
Posted: Mon, 2005-02-07 10:46

Ok, let's try to explain this.
I do not want users to have their own album, so i deactivated that function. Nevertheless, i want them to be able to upload their own pictures to an already existing album.................

This exactly what i want too, im running on g2.2.3 and able to install the module/plugin without a problem.
How do you share this album to a registered users?

 
m3lvm

Joined: 2009-06-17
Posts: 49
Posted: Thu, 2009-06-18 16:08

I have just looked at the inc file just wondering do you have change the word gallery to on you have specified eg mine is catalouge ?