[Pushed] The level of warnings in your profile leads to usercp.php
#1
Hello,

in your profile e.g. 0% leads to usercp.php - i think for your own profile level of warnings could be not a link

Edit:
same in postbit_author_user warning level link
Reply
#2
There's a per group setting that you can set wether a group can view their own warnings. Is this what you mean or am I missings omething?
-Ben

Please do not PM me for support. I am looking to be hired for paid services.

You can view my paid services here.
Reply
#3
(2020-07-09, 08:58 AM)Ben Wrote: There's a per group setting that you can set wether a group can view their own warnings. Is this what you mean or am I missings omething?
Unfortunately I can't see this setting in group edit, but in warning system settings is:

Quote:Can Users View Own Warnings?
Set to Yes to allow users to view recent warnings in their User CP and show their warning level to them in their profile.

If No users can't see own warning level; if Yes users can see e.g. 0% level which is link to usercp.php - i think it should not be link to this place for users
Well, unless I'm wrong  Dodgy
   
Reply
#4
The link is to User CP if the user cannot manage warnings or they are viewing their own profile. So for moderators and administrators viewing their own profile the link will be to User CP. Which I suppose is a bit unexpected, code for it is here: https://github.com/mybb/mybb/blob/mybb_1...2667-L2673
if($mybb->usergroup['canwarnusers'] != 0 && $memprofile['uid'] != $mybb->user['uid'])


Perhaps we should drop the viewing own profile check as it is actually possible to view the warnings.php page for your own account.
Reply
#5
I agree, this should be changed.
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#6
Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/4123

Thanks for contributing to MyBB!

Regards,
The MyBB Group
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)