Extendy / SmartyURL

SmartyURL is a PHP-based web application for Smart URL management, Sharing, shortening, and analytics, featuring smart redirects.
https://docs.smartyurl.extendy.net/
MIT License
12 stars 2 forks source link

Bug: When `url_can_be_shared_between_users` user url counts show incorrect number #135

Closed mshannaq closed 10 months ago

mshannaq commented 10 months ago

Describe the bug when url_can_be_shared_between_users option is enabled then if you list users you will see incorrect url numbers for every user

To Reproduce Steps to reproduce the behavior:

  1. enable smartyurl.url_can_be_shared_between_users on .env
  2. login as superadmin
  3. list users
  4. take a look to users URLs count.

Expected behavior the problem exists because the system till count shared link as user links

so we should change the function that count the URLs of user to return only his links not the shared also.

even when listing the user url by admin e.g https://smartyurl.test/index.php/url/user/2 it show the shared also , and note that if you plan to change this you should consider while the user list his urls by himself.

using Smarty v0.0.0-dev.6