Exemplo n.º 1
0
        public IActionResult Get()
        {
            var adminClaim = User.Claims.FirstOrDefault(x => x.Type == "role" && x.Value == "securedFiles.admin");
            var files      = _securedFileProvider.GetFilesForUser(adminClaim != null);

            return(Ok(files));
        }
Exemplo n.º 2
0
        public IActionResult Get()
        {
            //  TODO MUST FIX, rc4 update does not work, claims are missing
            var adminClaim = User.Claims.FirstOrDefault(x => x.Type == "role" && x.Value == "securedFiles.admin");
            var files      = _securedFileProvider.GetFilesForUser(adminClaim != null);

            return(Ok(files));
        }