Changes: 1. rename the sandstorm "manage" permission to "edit" (old permission names: view, add, manage; new permission names: view, add, edit). Rationale: "edit" best describes this permission's current powers, to users and to operators. If we ever added more manager-type features we'd want that to be a new permission, not a rename of the existing one (which would change the powers of existing users). 2. rename the sandstorm roles for consistency with permissions (old role names: viewer, editor, manager; new role names: viewer, adder, editor) Rationale: it's needed to avoid confusion. 3. add a new option: --allow=view|add|edit|sandstorm (default: add). 'sandstorm' sets permissions according to the X-Sandstorm-Permissions header. Drop the --capabilities and --capabilities-header options. Rationale: it's simpler and more intuitive. 4. replace "capability" with "permission" in ui/docs/code. Rationale: consistent with the above, more familiar.
27 lines
1.2 KiB
Haskell
27 lines
1.2 KiB
Haskell
module Hledger.Web.Import
|
|
( module Import
|
|
) where
|
|
|
|
import Prelude as Import hiding (head, init, last,
|
|
readFile, tail, writeFile)
|
|
import Yesod as Import hiding (Route (..), parseTime)
|
|
|
|
import Control.Monad as Import
|
|
import Data.Bifunctor as Import
|
|
import Data.ByteString as Import (ByteString)
|
|
import Data.Default as Import
|
|
import Data.Either as Import
|
|
import Data.Foldable as Import
|
|
import Data.List as Import (unfoldr)
|
|
import Data.Maybe as Import
|
|
import Data.Text as Import (Text)
|
|
import Data.Time as Import
|
|
import Data.Traversable as Import
|
|
import Data.Void as Import (Void)
|
|
import Text.Blaze as Import (Markup)
|
|
|
|
import Hledger.Web.Foundation as Import
|
|
import Hledger.Web.Settings as Import
|
|
import Hledger.Web.Settings.StaticFiles as Import
|
|
import Hledger.Web.WebOptions as Import (Permission(..))
|