snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.81k stars 3.13k forks source link

The people count panel is not consolidating by company. #12214

Open decioesilva opened 1 year ago

decioesilva commented 1 year ago

Debug mode

Describe the bug

The people count panel is not consolidating by company.

Reproduction steps

  1. Create a new user admin and select a organization for then.
  2. Login with this user.
  3. Check people count on dashboard.
  4. The count people on dashboard show all users on all organizations.

Expected behavior

Conting only people at same organization as with assets, licenses, consumables and accessories.

Screenshots

image

Snipe-IT Version

6.0.13

Operating System

Ubuntu

Web Server

Apache

PHP Version

7.4

Operating System

Any

Browser

All

Version

Any

Device

Any

Operating System

Any

Browser

Any

Version

Any

Error messages

No error code.

Additional context

Is this a fresh install.

welcome[bot] commented 1 year ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

snipe commented 1 year ago

Only superusers have access to the dashboard, and superusers can see across companies, so this is working as intended currently.

decioesilva commented 1 year ago

But in that case I used “Admin”, not “Super Admin” with a Company defined permission, all dashboard card appears correctly consolidated, only people count is visible, including number of people from other company, hidden companies for this admin.

@.***

De: snipe @.> Enviada em: quarta-feira, 7 de dezembro de 2022 17:14 Para: snipe/snipe-it @.> Cc: Decio E. Silva @.>; Author @.> Assunto: Re: [snipe/snipe-it] The people count panel is not consolidating by company. (Issue #12214)

Only superusers have access to the dashboard, and superusers can see across companies, so this is working as intended currently.

— Reply to this email directly, view it on GitHubhttps://github.com/snipe/snipe-it/issues/12214#issuecomment-1341534862, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMK6INJHSHMKP2L5EYOMKWLWMDVZVANCNFSM6AAAAAASW2MBRM. You are receiving this because you authored the thread.Message ID: @.**@.>>


ATENÇÃO: Este e-mail foi recebido de um domínio externo. Abra hyperlinks e anexos com cuidado.


"O emitente desta mensagem é responsável por seu conteúdo e endereçamento. Cabe ao destinatário cuidar quanto ao tratamento adequado. Sem a devida autorização, a divulgação, a reprodução, a distribuição ou qualquer outra ação em desconformidade com as leis brasileiras são proibidas e passíveis de sanção disciplinar, cível e criminal."

"The sender of this message is responsible for its content and addressing. The receiver shall take proper care of it. Without due authorization, the publication, reproduction, distribution, or the performance of any other action not conforming with Brazilian law is forbidden and liable to disciplinary, civil or criminal sanctions."

"El emisor de este mensaje es responsable por su contenido y direccionamiento. Cabe al destinatario darle el tratamiento adecuado. Sin la debida autorización, su divulgación, reproducción, distribución o cualquier otra acción no conforme con la legislación brasileña están prohibidas y serán pasibles de sanción disciplinaria, civil y penal."