Posted by yngens on September 29, 2006 at 8:44pm
| Project: | Playlist (toolkit, modules) |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hello there,
When adding an audio file admin can only see his/her own audio playlists only. Meanwhile, it would be great if members of specific group (admins, moderators) could add audio to any of the users' audio playlists. On our website we have several audioplaylists, every one of which assigned to different users and sometimes admin needs to add audio to other users' playlist, but in order to do so he/whe has to long way - via audioplaylist's manage tab, not in audiofiles edit window.
Comments
#1
I'm not sure I understand. Can't admin's already modify other users' playlists?
#2
they can, but only going to edit or manage audio list page. what about when admin is trying to add new audio file? he can only add that file to his play list meanwhile he as an admin should be able to add to any playlist. hope you understand what i mean. just try to upload new file and you will see that you can only add that audio file to your playlist on the fly (in the same window).
#3
Subscribing (i too would find this feature useful)
#4
I am finding this too... Picture attached should hopefullly help clarify the issue:
Basically, even if a user has all the privileges, he can *only* add an audio file on the fly [under node/add/audio] to those playlists that he himself the the author of... [This has something to do with the playlist_get_parents command the fourth line down in the following code for audio_playlist...]
See below...
<?php
case 'audio_node_form':
$node = $form['#node'];
// _form_form code follows:
$parents = playlist_get_parents(array('uid' => $user->uid, 'type' => 'audio_playlist'));
$form['playlist'] = array(
'#type' => 'fieldset',
'#title' => t('Playlists'),
'#collapsible'=> TRUE,
'#weight' => -2,
'#tree' => TRUE,
);
foreach($parents as $parent_id) {
$parent = node_load($parent_id);
$form['playlist'][$parent->nid] = array(
'#type' => 'checkbox',
'#title' => $parent->title,
'#default_value' => playlist_check(array('parent_id'=>$parent_id, 'child_id' => $node->nid))
);
}
?>
Good luck and thanks for everything...
Peace and love,
Albert
#5
Hmm, yes I can see how this is too user centric - blocking out admin access to adding/updating. I'll keep this in mind as I work on the 5.0 playlist stuff.