Library - Owner COMBO

Bug #1402295 reported by Laercio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xibo
Fix Released
Undecided
Dan Garner

Bug Description

The Owner COMBO, currently lists all users.

I question the functionality with the following developments:

Admin: We should display all system users, after all this user restriction need not

Admin Group: We should display all users in the group, for the group admin

User: We should show only what the user owns or what is shared from another user for it. If shared media of any user, that user should appear in the combo.

Tags: filter

Related branches

Dan Garner (dangarner)
Changed in xibo:
milestone: none → 1.7.0
assignee: nobody → Dan Garner (dangarner)
tags: added: filter
Dan Garner (dangarner)
Changed in xibo:
status: New → Fix Committed
Dan Garner (dangarner)
Changed in xibo:
status: Fix Committed → Fix Released
Revision history for this message
Laercio (laercionit) wrote :

I conducted the tests and still does not work as aligned.

Revision history for this message
Dan Garner (dangarner) wrote :

What about it doesn't work?

Revision history for this message
Laercio (laercionit) wrote : Re: [Bug 1402295] Re: Library - Owner COMBO

Show allways all users...

*Laercio Junior*
Cel./Pessoal: (21) 99162-7440
Email Pessoal: <email address hidden>
MSN: <email address hidden>
Skype: laercionit

2015-01-09 14:05 GMT-02:00 Dan Garner <email address hidden>:

> What about it doesn't work?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1402295
>
> Title:
> Library - Owner COMBO
>
> Status in Xibo Open Source Digital Signage:
> Fix Released
>
> Bug description:
> The Owner COMBO, currently lists all users.
>
> I question the functionality with the following developments:
>
> Admin: We should display all system users, after all this user
> restriction need not
>
> Admin Group: We should display all users in the group, for the group
> admin
>
> User: We should show only what the user owns or what is shared from
> another user for it. If shared media of any user, that user should
> appear in the combo.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/xibo/+bug/1402295/+subscriptions
>

Revision history for this message
Dan Garner (dangarner) wrote :

Can you go into lib/data/userdata.data.class.php and on line 94 comment out the Audit message. Then can you run the filter form again and get the SQL that is being run?

The logic in the code says that:

If I am a normal user, show only myself
If I am a group admin, show only users in my groups
If I am a super admin, show all users

Revision history for this message
Laercio (laercionit) wrote :

Using debug mode...

Notice: Undefined index: userId in C:\xampp\htdocs\@Teste@
\modules\module_user_general.php on line 1659

*Laercio Junior*
Cel./Pessoal: (21) 99162-7440
Email Pessoal: <email address hidden>
MSN: <email address hidden>
Skype: laercionit

2015-01-09 16:19 GMT-02:00 Dan Garner <email address hidden>:

> Can you go into lib/data/userdata.data.class.php and on line 94 comment
> out the Audit message. Then can you run the filter form again and get
> the SQL that is being run?
>
> The logic in the code says that:
>
> If I am a normal user, show only myself
> If I am a group admin, show only users in my groups
> If I am a super admin, show all users
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1402295
>
> Title:
> Library - Owner COMBO
>
> Status in Xibo Open Source Digital Signage:
> Fix Released
>
> Bug description:
> The Owner COMBO, currently lists all users.
>
> I question the functionality with the following developments:
>
> Admin: We should display all system users, after all this user
> restriction need not
>
> Admin Group: We should display all users in the group, for the group
> admin
>
> User: We should show only what the user owns or what is shared from
> another user for it. If shared media of any user, that user should
> appear in the combo.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/xibo/+bug/1402295/+subscriptions
>

Revision history for this message
Laercio (laercionit) wrote :

use the debug command to perform the tests.

Displays on screen there are many mistakes ...

*Fatal error*: Class 'Theme' not found in
*C:\xampp\htdocs\@Teste@\config\client.config.php* on line *288*

Notice: Undefined index: in C: \ xampp \ htdocs \ @ Test @ \ lib \ data \
displayprofile.data.class.php on line 97

Notice: Undefined index: in C: \ xampp \ htdocs \ @ Test @ \ lib \ data \
displayprofile.data.class.php on line 99

Warning: Invalid argument supplied for foreach () in C: \ xampp \ htdocs \
@ Test @ \ lib \ data \ display.data.class.php on line 666

Notice: Undefined index: in C: \ xampp \ htdocs \ @ Test @ \ lib \ data \
displayprofile.data.class.php on line 97

Notice: Undefined index: in C: \ xampp \ htdocs \ @ Test @ \ lib \ data \
displayprofile.data.class.php on line 99

Warning: Invalid argument supplied for foreach () in C: \ xampp \ htdocs \
@ Test @ \ lib \ data \ display.data.class.php on line 666

Notice: Undefined index: in C: \ xampp \ htdocs \ @ Test @ \ lib \ data \
displayprofile.data.class.php on line 97

Notice: Undefined index: in C: \ xampp \ htdocs \ @ Test @ \ lib \ data \
displayprofile.data.class.php on line 99

Warning: Invalid argument supplied for foreach () in C: \ xampp \ htdocs \
@ Test @ \ lib \ data \ display.data.class.php on line 666

*Laercio Junior*
Cel./Pessoal: (21) 99162-7440
Email Pessoal: <email address hidden>
MSN: <email address hidden>
Skype: laercionit

2015-01-09 16:37 GMT-02:00 Laercio Mendonça <email address hidden>:

> Using debug mode...
>
> Notice: Undefined index: userId in C:\xampp\htdocs\@Teste@
> \modules\module_user_general.php on line 1659
>
>
> *Laercio Junior*
> Cel./Pessoal: (21) 99162-7440
> Email Pessoal: <email address hidden>
> MSN: <email address hidden>
> Skype: laercionit
>
>
>
> 2015-01-09 16:19 GMT-02:00 Dan Garner <email address hidden>:
>
> Can you go into lib/data/userdata.data.class.php and on line 94 comment
>> out the Audit message. Then can you run the filter form again and get
>> the SQL that is being run?
>>
>> The logic in the code says that:
>>
>> If I am a normal user, show only myself
>> If I am a group admin, show only users in my groups
>> If I am a super admin, show all users
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1402295
>>
>> Title:
>> Library - Owner COMBO
>>
>> Status in Xibo Open Source Digital Signage:
>> Fix Released
>>
>> Bug description:
>> The Owner COMBO, currently lists all users.
>>
>> I question the functionality with the following developments:
>>
>> Admin: We should display all system users, after all this user
>> restriction need not
>>
>> Admin Group: We should display all users in the group, for the group
>> admin
>>
>> User: We should show only what the user owns or what is shared from
>> another user for it. If shared media of any user, that user should
>> appear in the combo.
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/xibo/+bug/1402295/+subscriptions
>>
>
>

Revision history for this message
Dan Garner (dangarner) wrote :

Ah, damn - I see the problem.

modules/module_user_general.php line 1659 change to:

$filterBy['userId'] = $this->userid;

The other issues should be investigated when there is a problem - the messages are not related to this (need to debug one thing at a time otherwise it gets very complicated).

Revision history for this message
Dan Garner (dangarner) wrote :
Revision history for this message
Dan Garner (dangarner) wrote :

Also created one for the other errors: https://bugs.launchpad.net/xibo/+bug/1409108

Revision history for this message
Laercio (laercionit) wrote :

Hello Dan,
Your change worked.
Another point that also realized and had registered the bug, but it still
happens in rc1

https://bugs.launchpad.net/xibo/+bug/1397762

*Laercio Junior*
Cel./Pessoal: (21) 99162-7440
Email Pessoal: <email address hidden>
MSN: <email address hidden>
Skype: laercionit

2015-01-09 17:11 GMT-02:00 Dan Garner <email address hidden>:

> Ah, damn - I see the problem.
>
> modules/module_user_general.php line 1659 change to:
>
> $filterBy['userId'] = $this->userid;
>
>
> The other issues should be investigated when there is a problem - the
> messages are not related to this (need to debug one thing at a time
> otherwise it gets very complicated).
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1402295
>
> Title:
> Library - Owner COMBO
>
> Status in Xibo Open Source Digital Signage:
> Fix Released
>
> Bug description:
> The Owner COMBO, currently lists all users.
>
> I question the functionality with the following developments:
>
> Admin: We should display all system users, after all this user
> restriction need not
>
> Admin Group: We should display all users in the group, for the group
> admin
>
> User: We should show only what the user owns or what is shared from
> another user for it. If shared media of any user, that user should
> appear in the combo.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/xibo/+bug/1402295/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.