Implement user flag offset
This commit is contained in:
parent
2aa5214b2b
commit
1e80d37b73
@ -18,7 +18,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
USERFLAG_IDENTIFIED = iota + 8
|
USERFLAG_IDENTIFIED = iota + state.FLAG_USERSTART
|
||||||
USERFLAG_HAVENAME
|
USERFLAG_HAVENAME
|
||||||
USERFLAG_HAVEEMAIL
|
USERFLAG_HAVEEMAIL
|
||||||
)
|
)
|
||||||
@ -44,6 +44,7 @@ func newProfileResource(st *state.State, rs *resource.FsResource) *profileResour
|
|||||||
}
|
}
|
||||||
|
|
||||||
func(pr *profileResource) checkEntry() error {
|
func(pr *profileResource) checkEntry() error {
|
||||||
|
log.Printf("%v %v", USERFLAG_IDENTIFIED, USERFLAG_HAVENAME)
|
||||||
if pr.haveEntered {
|
if pr.haveEntered {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ const (
|
|||||||
FLAG_DIRTY
|
FLAG_DIRTY
|
||||||
FLAG_WAIT
|
FLAG_WAIT
|
||||||
FLAG_LOADFAIL
|
FLAG_LOADFAIL
|
||||||
|
FLAG_USERSTART = 8
|
||||||
)
|
)
|
||||||
|
|
||||||
func IsWriteableFlag(flag uint32) bool {
|
func IsWriteableFlag(flag uint32) bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user