my problem is, that i have restricted the access permission for an album. only the usergroup "family" should be able to add media to the album.
when i log in as admin, i have a link "add media" in the album. when i log in as "family" there is no "add media" link.
when i use the url "index.php?module=mediashare&type=edit&func=view&aid=1" i also can edit the album when im logged in as "family". so i think my permissions are o.k.
but how can i show the link "add media" automaticly to those users, which have the "add media permission" for this album?
(i dont think, that it is relevant, but i user mediashare 3.1.1 with pn 0.8 RC1)
Posted: 19.11.2007, 20:58
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
No idea. Sorry.
Posted: 28.11.2007, 17:31
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
I got the same problem, mediashare 3.1.1 with PN 0.764.
Users mediashare:: .* Edit
No link for adding albums to users. :-?
Posted: 08.01.2008, 23:42
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
Hi,
I have been sitting with the permissions structure of mediashare for about 4 hours. My site requirements is as follows:
a. Registered users must be able to create/add their own albums to the top level album.
b. Registered users must be allowed to fully administrate their own albums.
c. Registered users are not allowed to view each other's albums without invite.
d. Unregistered users are not allowed to view albums without invite.
e. There must exist a publicly viewable album that all registered users can view but not administrate.
Sounds like fun hey? Here is my howto for the abovementioned. Any ideas to do it better are welcomed.
Step 1 ? PN permissions
PN permissions are tricky but AFAIK it follows a lot like iptables, with a first hit match and not best fit match (comments? is this correct?). My PN permissions are as follows:
Admins .* .* Admin
All groups Menublock:: Main Menu:Administration: None
Users mediashare:: .* Delete
Users .* .* Comment
Unregistered Menublock:: Main Menu:(My Account|Logout|Submit News): None
Unregistered .* .* Read
Previously I had the mediashare group permissions at the bottom and no user account had access to add albums, add media, edit anything etc.
Step 2 ? mediashare album access
What is very cool about the permission structure of mediashare is that each album has it's own access table. Thus when you give access to your top level album you can revoke access to your sub-albums.
What I did was for my top level album granted ?View? and ?Add album? access for group ?Users?. This allowed my registered users to go to index.php?module=mediashare and browse the top level album, then the ?Add album? link (only) would appear.
For the sub-albums (user created) all access rights are removed. Thus only the owner can view, edit etc. their own album. Quote from the access view:
?Users may always edit their own albums and media items independently of the access settings.?
Now also only invites from the album owner provide view to other users (registered and unregistered).
For the publicly viewable album I granted only ?View? rights to the ?Users? group.
That's it.
Trust this will help.
ciao
Marthin
Posted: 22.01.2008, 18:56
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
Yes, that does work, but only for the given scenario.
However, most of us want to allow users to add their own albums as well as be able to view albums of others without the need for invitations.
Link /index.php?module=mediashare only allows users to view everybody's albums inside the main album. They can't add new albums because there is no add link.
Link /index.php?module=mediashare&type=edit&func=view allows viewing and editing of only their own albums inside the main album and adding of new albums as well. But with this link [edit paramater] users cannot see other user's albums.
How do we get the add link to show inside the main mediashare album: /index.php?module=mediashare
And how do we make it so that clicking on the main album link while in edit mode we get out of the edit mode so that we can see all available albums.
Not a single permission scheme worked for me, there's got to be some problem with the module, it fails to allow users to go between the view and edit modes.
I could put two links on the main menu: one for general access to all albums and the other for edit mode by which users could add albums, but that's a tacky solution.