Show More
@@ -20,15 +20,15 b' class ui(object):' | |||
|
20 | 20 | self.overlay = config.config() |
|
21 | 21 | self.cdata = config.config() |
|
22 | 22 | self.ucdata = config.config() |
|
23 |
self.trust |
|
|
24 |
self.trust |
|
|
23 | self._trustusers = {} | |
|
24 | self._trustgroups = {} | |
|
25 | 25 | |
|
26 | 26 | if src: |
|
27 | 27 | self.cdata = src.cdata.copy() |
|
28 | 28 | self.ucdata = src.ucdata.copy() |
|
29 | 29 | self.overlay = src.overlay.copy() |
|
30 |
self.trust |
|
|
31 |
self.trust |
|
|
30 | self._trustusers = src._trustusers.copy() | |
|
31 | self._trustgroups = src._trustgroups.copy() | |
|
32 | 32 | self.fixconfig() |
|
33 | 33 | else: |
|
34 | 34 | # we always trust global config files |
@@ -54,8 +54,7 b' class ui(object):' | |||
|
54 | 54 | if util.isowner(fp, st): |
|
55 | 55 | return True |
|
56 | 56 | |
|
57 |
tusers = self. |
|
|
58 | tgroups = self.trusted_groups | |
|
57 | tusers, tgroups = self._trustusers, self._trustgroups | |
|
59 | 58 | if '*' in tusers or '*' in tgroups: |
|
60 | 59 | return True |
|
61 | 60 | |
@@ -118,9 +117,9 b' class ui(object):' | |||
|
118 | 117 | |
|
119 | 118 | # update trust information |
|
120 | 119 | for user in self.configlist('trusted', 'users'): |
|
121 |
self.trust |
|
|
120 | self._trustusers[user] = 1 | |
|
122 | 121 | for group in self.configlist('trusted', 'groups'): |
|
123 |
self.trust |
|
|
122 | self._trustgroups[group] = 1 | |
|
124 | 123 | |
|
125 | 124 | def setconfig(self, section, name, value): |
|
126 | 125 | for cdata in (self.overlay, self.cdata, self.ucdata): |
General Comments 0
You need to be logged in to leave comments.
Login now