• Hey Guest, don't forget to VOTE on each RFC topic. Your voting determine Chevereto development! No votes, no development.
  • Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

Is it possible to add a "Lock Categories" option in the admin dashboard?

user_0094e

Chevereto Member
I found that when a user uploads an image, after the administrator modetate and put in correct specified category...

the user can modify the image category again...

this causes the administrator modetate meaningless...causing chaos.

Is it possible to add a "Lock Categories" option in the admin dashboard?(Or "not allow changing categories after uploading.")

not allow the user adjust the category again.
 
Last edited:
We already have lock nsfw editing so we could also get lock category (or anything else) editing.
 
Guys 🥹 please give this post a like... please...
I modified it this way:
In /content/legacy/themes/Peafowl/snippets/form-image.php

Add this line to top
Code:
use Chevereto\Legacy\Classes\Login;

Changed the line: (line 31)
Code:
if (Handler::var('categories') !== [])
to:
Code:
if (Handler::var('categories') !== [] && Login::isAdmin())

If you don't want users to select categories when uploading, make the same change in: /content/legacy/themes/Peafowl/snippets/anywhere_upload.php (line 189)
Code:
if (Handler::var('categories') && Login::isAdmin())
 
Last edited:
I modified it this way:
In /content/legacy/themes/Peafowl/snippets/form-image.php

Add this line to top
Code:
use Chevereto\Legacy\Classes\Login;

Changed the line: (line 31)
Code:
if (Handler::var('categories') !== [])
to:
Code:
if (Handler::var('categories') !== [] && Login::isAdmin())

If you don't want users to select categories when uploading, make the same change in: /content/legacy/themes/Peafowl/snippets/anywhere_upload.php (line 189)
Code:
if (Handler::var('categories') && Login::isAdmin())
Thank you so much☺️

self modifications can only be temporary, still hoped that will be incorporated into the official version.
 
Back
Top