Hello!
At the moment when the user access the project is enabled to use some parts of the menu.
so if not enable appear the prohibited icon on rollover
I did it enabling those parts from numbers in the user notes with:
if notes:
try:
parts = notes.split(";")
for part in parts:
if part.startswith("zones:"):
zone_numbers = part.split(":")[1]
enabled_zones = set(zone_numbers.split(","))
elif part.startswith("access:"):
# Get the access value and determine enabled items
access_numbers = part.split(":")[1]
enabled_access = [int(digit) for digit in access_numbers]
I would like to know if is possible to hide those parts of the menu instead, so they don´t appear to the user with no privileges.
Thanks and happy Christmas,
Alejandro