-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create new (usable) userclasses within extensions #1549
Comments
I am right now in the middle of reworking user classes to be stored in the database where they can be edited in a point-and-click kind of way, deprecating Adding new user classes via extension isn't something I had ever imagined, I'm surprised that it worked at all 😅 But I will have a quick experiment and see if I can make it work again, at least temporarily (until the migration to the database is complete) |
This appears to be working for me 👀 (Tested by copy-pasting your Thinking about other recent changes which might affect this -- does your custom extension have (FYI I'm keeping a list of major changes in https://github.com/shish/shimmie2/wiki/Upgrade#upcoming-breaking-changes-in-212 ) |
Oh you're right, i've missed that change apparently. Now it seems to work again, thanks! |
Server Software
What steps trigger this bug
Inside a new and enabled extension, add the function
onInitExt
like normalWhat did you expect to happen?
A new userclass is created, which can be used, in for example the "change class" dropdown on a user's page, which was the case in the latest merge i did from d325fa7
What actually happened?
the new class does not show up, and users with the class gotten beforehand now error out when loading their page since the userclass does not exist.
I have tried setting the priority of the extension higher and lower than 50, which did not change the outcome.
Or is there some other way to implement custom userclasses without having to rely on
user-classes.conf.php
for extensions?The text was updated successfully, but these errors were encountered: