Whats the point of explicit permissions?

ryanmc

Joined: 2006-10-15
Posts: 72
Posted: Thu, 2009-08-13 18:46

I noticed while editing permissions that I can click the check mark to explicitly give permission. However, I am not sure how this is useful because the parent's permissions always override the child's even when the child has explicit permissions set. I am probably missing out on some great functionality because I don't understand.

www.justechn.com

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7985
Posted: Fri, 2009-08-14 17:47

The parents permissions don't override the child, except in the case of view permissions. If you can't view the parent, you can't view the child. But for all other permissions, you can override the parent's setting for any given child hierarchy. Is this not what you're seeing?
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Fri, 2009-08-14 18:01
Quote:
If you can't view the parent, you can't view the child.

Why is it setup this way? Is it technical or by design? I've seen many people setup G2 to have a hidden "client" album, that contains sub-albums. The clients can't see the client album or it's contents, but they can get pointed directly to their sub-album and see their stuff.

I'd like to have that functionality in G3 myself :) Currently in G2, I have a "non-public" album or two that contain sub-albums which I've used and referred to for similar situations.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ryanmc

Joined: 2006-10-15
Posts: 72
Posted: Fri, 2009-08-14 18:35
bharat wrote:
The parents permissions don't override the child, except in the case of view permissions. If you can't view the parent, you can't view the child. But for all other permissions, you can override the parent's setting for any given child hierarchy. Is this not what you're seeing?

I had only tried view, when I tried the others they do work the way you describe. Can we get view to also work that way? View has the ability to apply explicit permissions, they just get overridden by the parent. I would be very happy if view did not get overridden.

www.justechn.com

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7985
Posted: Fri, 2009-08-14 20:05

nivekiam: it's set up this way because it doesn't make a lot of intuitive sense to have the "walled garden" effect of a public hierarchy that's nested within a private hierarchy. It makes global navigation really tricky (eg, do you show breadcrumbs for albums that are private and therefore you're not supposed to know about? what about urls?), and it makes permission management really tricky (what's public? what's private? even though I marked my whole Vegas part private, what if I accidentally mark some part below it to be public)? Right now you have an iron-clad guarantee that if album A is private, albums B/C/D which are under A are private too.

Oh, and this greatly simplifies the UI also. In every case that I've seen, you can solve your problem in a different and equally good way without having to violate this rule. Perhaps you can offer up some counter-examples that I haven't seen before? I have no intentions currently to reverse this decision.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
ryanmc

Joined: 2006-10-15
Posts: 72
Posted: Mon, 2009-08-24 15:53

I don't know about everyone else, but I like to have my albums hidden while I am getting all the pictures arranged and labeled. Then when everything thing is ready I make the album visible. This keeps visitors from seeing things when they are unfinished. This is much more professional for my site. If there is any question about how the permissions should work, you could copy G2. I currently use G2 and it works just fine.

www.justechn.com

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2009-08-24 17:13

The permission system in G3 is different than G2. With the way they are structured in G3, for your work flow, I'd suggest having an album that's hidden where you do your work in, then move any albums out of there to your "public" place when you are done working on them.

And I could have sworn I replied to bharat's post, but maybe that was only in my head....

bharat, thanks for the clarification.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ryanmc

Joined: 2006-10-15
Posts: 72
Posted: Mon, 2009-08-24 17:45
nivekiam wrote:
I'd suggest having an album that's hidden where you do your work in, then move any albums out of there to your "public" place when you are done working on them.

I had considered that, but then I worried that any links into that album would change when I moved the album. I write reviews that use those images, and I need to setup all the images in my reviews before I post the review or the images. If the links change I would have to modify all my reviews after I made them visible (moved them).

Do links change when albums are moved?

www.justechn.com

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2009-08-24 17:50

Yes, the URLs to the images would change if you moved albums.

Another option, don't use nested albums. So you create an album on the main page, hide it, do you work, publish it.

What's your work flow look like right now? How do you have your albums structured?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ryanmc

Joined: 2006-10-15
Posts: 72
Posted: Mon, 2009-08-24 18:20
nivekiam wrote:
Another option, don't use nested albums. So you create an album on the main page, hide it, do you work, publish it.

What's your work flow look like right now? How do you have your albums structured?

Right now I have my images organized by manufacturer->product. Sometimes I will even go another level down if there is a specific product line manufacturer->product line->product.

For example I have an album called Logitech and several subalbums (Harmony One, Dinovo Mini, etc.). However, I may in the future organize it Logitech->keyboards->dinovo.

I think having everything on the top level would be a management and organization nightmare. I would have hundreds of top level albums.

www.justechn.com

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2009-08-24 18:38

bharat, what would you suggest for that? :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25940
Posted: Mon, 2009-08-24 23:27

ryanmc,
You could write permalink module that could handle the URL changes.

Quote:
If there is any question about how the permissions should work, you could copy G2. I currently use G2 and it works just fine.

Then continue to use G2
No way is that goihg to happen in G3. It was WAY to complex and had significant performance/complexity/usability/upgrade/support implications.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ryanmc

Joined: 2006-10-15
Posts: 72
Posted: Tue, 2009-08-25 03:46
floridave wrote:
You could write permalink module that could handle the URL changes.

I will have to look into that. I have never written a module so it may take a bit to get started. G2 let me specify an Item ID and the ID would not change when I moved an album. Is that what you are referring to?

floridave wrote:
Quote:
If there is any question about how the permissions should work, you could copy G2. I currently use G2 and it works just fine.

No way is that goihg to happen in G3. It was WAY to complex and had significant performance/complexity/usability/upgrade/support implications.

I think this was taken out of context. I never meant to copy all of G2's permissions (I like the simplified permissions), I meant the part that relates to the topic (showing child albums when a parent is hidden).
Could this be written as a module? I would rather work on this over the permalink one.

floridave wrote:
Then continue to use G2

I may end up doing that if we cannot come up with some kind of solution.

www.justechn.com

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-08-25 13:26
Quote:
I may end up doing that if we cannot come up with some kind of solution.

Just like when G2 was first released, G3's feature set will not be desirable for all people. G2 over the years grew quite a bit, not just core functionality, but the user community submitted all kinds of plugins, hacks, themes, etc. It'll take time, but I expect people to write a ton more plugins for G3 than was ever written for G2 :) In the end, I think G3 is going to end up being way more functional than G2. Not the core, the core will hopefully stay, lean, mean and simple. But people will write plugins for much more advanced features.

I would still like to see what bharat would suggest for this sort of situation.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-08-27 19:00

I've just been playing around and talking with bharat. It should work like you're describing (IIRC)

Logitech <-- Visible
-- Mice <-- Visible
-- MX1000 <-- Hidden (or can be hidden)

That MX1000 album can be hidden for Everyone so you, the admin, could add items, set everything up, then change permissions to unhide it when you publish your article.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ryanmc

Joined: 2006-10-15
Posts: 72
Posted: Thu, 2009-08-27 19:11
nivekiam wrote:
I've just been playing around and talking with bharat. It should work like you're describing (IIRC)

Logitech <-- Visible
-- Mice <-- Visible
-- MX1000 <-- Hidden (or can be hidden)

That MX1000 album can be hidden for Everyone so you, the admin, could add items, set everything up, then change permissions to unhide it when you publish your article.

You are correct that your example works, but I was hoping for this

Logitech <-- Hidden
-- Mice <-- Hidden
-- MX1000 <-- Visible

Why? I don't know just a preference. I don't want people trolling around my gallery. I want to manually link to a album from my review and then have them stay there (maybe I can just hide the breadcrumb).

However this is all moot because as soon as I hide a gallery I cannot see the images (even when logged into as admin) http://gallery.menalto.com/node/90075

Thanks for following up for me.

www.justechn.com

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-08-27 22:41

We've been discussing this, it's just not supported in G3. We don't see any reason that if you have a child album visible that the parent albums couldn't be visible. The path is going to be in the URL whether breadcrumbs are hidden or not so people are going to see the path anyway.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ryanmc

Joined: 2006-10-15
Posts: 72
Posted: Thu, 2009-08-27 23:05
nivekiam wrote:
We've been discussing this, it's just not supported in G3. We don't see any reason that if you have a child album visible that the parent albums couldn't be visible. The path is going to be in the URL whether breadcrumbs are hidden or not so people are going to see the path anyway.

Disappointing but understandable, you make the program, you make the rules. I guess I will just stick with G2. You can ignore all my other G3 related forum posts because I am going to remove it from my server.

Thanks
www.justechn.com