xiaomlove / nexusphp

A private tracker application base on NexusPHP
https://nexusphp.org
GNU General Public License v2.0
873 stars 178 forks source link

problem class user fonction.php and permission #96

Closed Stargaterom closed 2 years ago

Stargaterom commented 2 years ago

hello @xiaomlove , I noticed a difference order of class in function and drop down permission seting or change class a user .

the drop-down list to change the class in Authority Settings : index

file function.php: fonctionp php

userdetail.php 2

here is my problem in my example I want to give permission to the uploader to approve his torrents and be part of the staff so I choose: permission uploader

staff uploader

so in the logic on the page of an upload I should be able to approve the torrents and edited knowing that I am from the staff !! here is a capture that shows that it does not work by choosing the uploader class of its respective grade in the permissions.

resultat1

if I set the same thing as my capture and Torrent Management on class retiree. approval torrent retiree

staff retiree

torrent manage retiree

here is what is displayed : resulat 2

so use a user who and class uploader color red except that to give him the permissions I have to meter the class removed for that uploader and the permissions so there is a problem

I looked for where the problem could come from, my I don't know where to configure all of them, he must have an inversion with retired and upload to a user config file

thank you if you can tell me if it comes from me or there is a problem with the class user because here is the raw site of the update.php no modification and brought by me to this version

xiaomlove commented 2 years ago

Github allows direct upload of images, which looks delicious

Stargaterom commented 2 years ago

@xiaomlove I have modified and made the images appear. I am waiting for your return to my problem cordially

xiaomlove commented 2 years ago

what version you are using ?

Stargaterom commented 2 years ago

I installed the site and since then I only do update/update.php to see the evolution of the project

this is the version i am updating with the update.php was made on the following github date.

Commits on Aug 21, 2022 update info version

xiaomlove commented 2 years ago

This is the code under development, you merge the latest commit to see.

Stargaterom commented 2 years ago

hello, yes on update this morning of 08/22 it seems to me that its return to order and that the permissions are associated with the good class indeed that this party and under development and therefore I make my requests very quickly as a thing I'm not going to try to temporize before annoying you hihih at least you had a fan club which follows your development

Stargaterom commented 2 years ago

one last little thing I did update this morning which added a new database table add_permission_to_staffmessages_table.php , it does not display in my phpmyadmin its normal ? table manquante

xiaomlove commented 2 years ago

It's normal, just add a field

Stargaterom commented 2 years ago

added a field? I don't know how we do it or I don't understand what you're telling me!!! because the table adds auto as it is placed in database migration

xiaomlove commented 2 years ago

You don't need to care about that.

Stargaterom commented 2 years ago

ok thanks for the answer