Forums | Mahara Community

Support /
Skins Housekeeping


Meg Goodine's profile picture
Posts: 11

03 November 2016, 12:39

Hello Mahara world

Our users have discovered skins and really like them but we are finding many "test" untitled public skins we need to clean up. Is there any way for site admins to do this? I can't seem to find a way to do it. It would also be great if skins were "private" rather than public by default. Clutter might be reduced if users had to make a conscious choice to make them public. Is there a way to change this in the site settings.

We are using v. 15.10.1

Thanks for any advice.

Robert Lyon's profile picture
Posts: 757

03 November 2016, 14:16

Hi Meg,

As an admin you are not able to edit / delete skins created by other users.
The only way you can currently make another user's skin private would be via the database.

You can do a query like:

  SELECT id, title, type FROM skin WHERE type = 'public';

And then update the ones you want to be private, for example:

  UPDATE skin SET type = 'private' WHERE id = 4;

However, if you want all the public skins to be private then you can go:

 UPDATE skin SET type = 'private' WHERE id IN (SELECT id FROM skin WHERE type = 'public');

In regards to the point about making skins private by default there is a bug for this: https://bugs.launchpad.net/mahara/+bug/1598927

And a fix https://reviews.mahara.org/#/c/6642/ that has been added to the 16.10 version of Mahara - the fix is minor enough that you should be able to backport it to your 15.10 version.

Cheers

Robert

Meg Goodine's profile picture
Posts: 11

04 November 2016, 7:48

Thanks Robert. Appreciate your help.

3 results