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

This commit is contained in:
Jiří Klimeš
2015-01-07 17:54:13 +01:00
parent e4f32abfec
commit 675d545bcc

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 ());