/[smecontribs]/rpms/smeserver-shared-folders/contribs10/smeserver-shared-folders-0.3-bz12477-shared-group.patch
ViewVC logotype

Annotation of /rpms/smeserver-shared-folders/contribs10/smeserver-shared-folders-0.3-bz12477-shared-group.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Feb 27 15:26:21 2024 UTC (8 months ago) by terryfage
Branch: MAIN
CVS Tags: smeserver-shared-folders-0_3-23_el7_sme, smeserver-shared-folders-0_3-22_el7_sme, HEAD
* Wed Feb 28 2024 Zsolt Vasarhelyi <vasarhelyizsolt@hotmail.com> 0.3-22.sme
-  NFR Add everyone group to groups list in shared folder's permissions [SME: 12477]
   fix createlinks - httpd updated to httpd-e-smith like all others in rpm

1 terryfage 1.1 diff -urN smeserver-shared-folders-0.3.old/createlinks smeserver-shared-folders-0.3/createlinks
2     --- smeserver-shared-folders-0.3.old/createlinks 2024-02-27 15:35:03.020779428 +0200
3     +++ smeserver-shared-folders-0.3/createlinks 2024-02-27 15:52:34.550575728 +0200
4     @@ -20,7 +20,7 @@
5     #action specific to this package
6     #event_link("some event", $event, "30");
7     #services we need to restart
8     -safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd");
9     +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
10     #
11     #--------------------------------------------------
12     # functions for manager panel
13     diff -urN smeserver-shared-folders-0.3.old/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/shares.pm smeserver-shared-folders-0.3/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/shares.pm
14     --- smeserver-shared-folders-0.3.old/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/shares.pm 2024-02-27 15:35:02.980779474 +0200
15     +++ smeserver-shared-folders-0.3/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/shares.pm 2024-02-26 22:55:56.000000000 +0200
16     @@ -382,6 +382,8 @@
17     foreach my $user ( split ( /[,;]/, $ReadUsers ) ) {
18     $ReadUsers{$user} = 1;
19     }
20     +
21     + my @shared = "shared";
22     my @groups = sort { $a->key() cmp $b->key() } $a->groups();
23     my @users = sort { $a->key() cmp $b->key() } $a->users();
24    
25     @@ -403,6 +405,31 @@
26     esmith::cgi::genSmallCell($q, $self->localise('READ_PERM'),"header")
27     );
28    
29     + foreach my $shared (@shared) {
30     + my $write = "";
31     + my $read = "";
32     + my $name = "shared";
33     + my $desc = "Everyone";
34     + if ( $WriteGroups{$name} ) {
35     + $write = "checked";
36     + }
37     + if ( $ReadGroups{$name} ) {
38     + $read = "checked";
39     + }
40     +
41     + $out .= $q->Tr(
42     + esmith::cgi::genSmallCell($q, $name, "normal"),
43     + esmith::cgi::genSmallCell($q, $desc, "normal"),
44     +
45     + esmith::cgi::genSmallCell($q,"<input type=\"checkbox\""
46     + . " name=\"writegroup\""
47     + . " $write value=\"$name\">", "normal"),
48     + esmith::cgi::genSmallCell($q,"<input type=\"checkbox\""
49     + . " name=\"readgroup\""
50     + . " $read value=\"$name\">", "normal")
51     + );
52     + }
53     +
54     foreach my $group (@groups) {
55     my $write = "";
56     my $read = "";

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed