idea: add in permission function only groups set cover profile
Profile Cover
[deleted]
- Edited
SychO Great extension, but would it be possible to add permissions? I want to only give my supporters the ability to upload a cover.
[deleted]
SychO Hey, i saw that you did the commits already, any plans on releasing?
- Edited
The strangest thing just happened...
One of the admins in my community went to delete the cover photo and his user got deleted. Is that even possible?
danielunited that is impossible, whatever happened must not have been triggered by the extension, the extension just deletes the image file and sets the user's cover to null before the user model gets saved. I don't see how that could've somehow ended up deleting the user instead.
- Edited
SychO I thought so. But on the other hand, no way he could've deleted his own user (Admins can't do that), and he didn't even get a confirmation prompt if he's sure he wants to delete his user. It immediately threw him out (and deleted his user).
I'm not sure what caused it yet, just thought I'd mention it.
danielunited that's certainly weird, are you sure the user was deleted ? does the user's data no longer exist in the users table ?
SychO No, it doesn't.
I ended up restoring a backup, so everything is ok now.
v1.2.0 Released
Now compatible with Flarum v0.1.0-beta.14 only
Adds a
setProfileCover
permission.Removes the cover images size calculations (too inconsistent and ended with wrong values in certain cases)
Fixes a bug with the create thumbnails checkbox
Updating
$ composer update sycho/flarum-profile-cover
thank you sir
[deleted]
SychO Thank you! BTW, i saw this action logs repo, will you tell us more about it?
[deleted]
SychO Thats great, thank you
v1.2.1
Updated for Flarum v0.1.0-beta.15
- Edited
hello, I can't uplaod .JPG images to the cover in beta-15
it's seams to be something like this profil problem for the message
i tried to upload an .jpg image to my profil photo, and it work
sorry for my bad english :S
in CoverValidator.php I add 'jpg' and works