fixed permissions and style
This commit is contained in:
parent
3fb1cfc17d
commit
575a41127f
12 changed files with 107 additions and 53 deletions
|
|
@ -55,7 +55,7 @@ func WritePerm(username, section string, p *Page) bool {
|
|||
func writePerm(username string, p *Page) bool {
|
||||
switch p.Perm {
|
||||
case Public, Internal:
|
||||
if p.Owner == "" {
|
||||
if p.Owner == WikiSection {
|
||||
return username != ""
|
||||
}
|
||||
return username == p.Owner
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue