giandonatoinverso / PHP-Dynamic-Qr-code

PHP Dynamic Qr code is a script that allows the generation and saving of dynamic and static QR codes
MIT License
244 stars 73 forks source link

IDEA: new publish only user role #42

Closed dapor2000 closed 9 months ago

dapor2000 commented 1 year ago

I thought about open my installation for more people, but then I realized that there are only admin-user-roles. So everyone is able to delete someones QR-codes.

So I like to have a user-role that can only append codes, without editing or anything else, but with a login to fight against bots. Wrong qr-code ? doesnt matter, make another one.

So i need a hint, where I should dive in the code.....

giandonatoinverso commented 1 year ago

Hello you have to create a new type of user at the database level in the appropriate table and you have to apply this change also to the class that manages users.

Furthermore, when creating / modifying / deleting the qrcode you have to manage this new type of user. The script is well designed to create new types of users including the one you asked for

Mavyre commented 11 months ago

Furthermore, it could be good to have "user" only be able to manage only their created QR Codes

giandonatoinverso commented 9 months ago

just released 2.0 version