#212 ✓resolved
Zdravko Balorda

output channels list in story/media profile out of context

Reported by Zdravko Balorda | October 19th, 2010 @ 06:29 AM | in 2.0.1

The story profile page involves a section for assigning OC to a story. As it is
all OC associated to a Story element are listed regardless of site context. Proper
behaviour would be to list only OC associated to a story site only. I suggest a fix
for this:

  • % my $sid = $story->get_site_id; % my $all_ocs = [
  • % grep { $->get_site_id == $sid && !$curr_ocs->{$->get_id} && chk_authz($_, READ, 1) }
  • % grep { ! $curr_ocs->{$->get_id} && chk_authz($, READ, 1) } % $story->get_element_type->get_output_channels % ]; in comp/widgets/story_prof/list_output_channels.html. The same goes for media profile.

Regards, Zdravko

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Referenced by