How to control the permissions of the background button in beego?

ask for advice
background uses beego to build
scenario description:
background has some operations for each row of data, such as editing and deletion, etc. Now the server has passed the InsertFilter time before routing permission detection.
now it just wants to keep the buttons that users do not have permissions from the page.

your own solution

wants to be handled by user-defined template functions, but the custom template functions have to be registered before beego.run, so how to read the permission list from session is a problem! It seems unable to call session,

so what should I do?

Mar.02,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be7f8e-318b3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be7f8e-318b3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?