tui: fix saving "Available to all users" (rh #1176042)

(cherry picked from commit 675d545bcc)
This commit is contained in:
Jiří Klimeš 2015-01-07 17:54:13 +01:00
parent 3d47cf5823
commit aee82153fc

View file

@ -256,7 +256,7 @@ permissions_transform_from_allusers (GBinding *binding,
gboolean allusers = g_value_get_boolean (source_value);
char **perms = NULL;
if (allusers) {
if (!allusers) {
perms = g_new (char *, 2);
perms[0] = g_strdup_printf ("user:%s:", g_get_user_name ());