@@ -51,7 +51,7 @@ func GetPGPMessageByUserID(c *fiber.Ctx) error {
5151 }
5252
5353 if ! IsShamirAdmin (userID ) {
54- return common .Forbidden ("only admin can get pgp message" )
54+ return common .Forbidden ("only shamir admin can get pgp message" )
5555 }
5656
5757 // get target user id
@@ -109,7 +109,7 @@ func ListPGPMessages(c *fiber.Ctx) error {
109109 }
110110
111111 if ! IsShamirAdmin (userID ) {
112- return common .Forbidden ("only admin can get pgp message" )
112+ return common .Forbidden ("only shamir admin can get pgp message" )
113113 }
114114
115115 // list pgp messages
@@ -157,7 +157,7 @@ func UploadAllShares(c *fiber.Ctx) error {
157157 }
158158
159159 if ! IsShamirAdmin (userID ) {
160- return common .Forbidden ("only admin can upload shares" )
160+ return common .Forbidden ("only shamir admin can upload shares" )
161161 }
162162
163163 // lock
@@ -219,7 +219,7 @@ func UploadPublicKey(c *fiber.Ctx) error {
219219 }
220220
221221 if ! IsShamirAdmin (userID ) {
222- return common .Forbidden ("only admin can upload public keys" )
222+ return common .Forbidden ("only shamir admin can upload public keys" )
223223 }
224224
225225 GlobalUploadShamirStatus .Lock ()
@@ -276,7 +276,7 @@ func GetShamirStatus(c *fiber.Ctx) error {
276276 }
277277
278278 if ! IsShamirAdmin (userID ) {
279- return common .Forbidden ("only admin can get shamir status" )
279+ return common .Forbidden ("only shamir admin can get shamir status" )
280280 }
281281
282282 GlobalUploadShamirStatus .Lock ()
@@ -303,7 +303,7 @@ func UpdateShamir(c *fiber.Ctx) error {
303303 }
304304
305305 if ! IsShamirAdmin (userID ) {
306- return common .Forbidden ("only admin can update shamir" )
306+ return common .Forbidden ("only shamir admin can update shamir" )
307307 }
308308
309309 GlobalUploadShamirStatus .Lock ()
@@ -345,7 +345,7 @@ func RefreshShamir(c *fiber.Ctx) error {
345345 }
346346
347347 if ! IsShamirAdmin (userID ) {
348- return common .Forbidden ("only admin can refresh shamir" )
348+ return common .Forbidden ("only shamir admin can refresh shamir" )
349349 }
350350
351351 GlobalUploadShamirStatus .Lock ()
@@ -602,7 +602,7 @@ func UploadUserShares(c *fiber.Ctx) error {
602602 }
603603
604604 if ! IsShamirAdmin (userID ) {
605- return common .Forbidden ("only admin can upload user shares" )
605+ return common .Forbidden ("only shamir admin can upload user shares" )
606606 }
607607
608608 GlobalUserSharesStatus .Lock ()
@@ -651,7 +651,7 @@ func GetDecryptedUserEmail(c *fiber.Ctx) error {
651651 }
652652
653653 if ! IsShamirAdmin (userID ) {
654- return common .Forbidden ("only admin can decrypt email" )
654+ return common .Forbidden ("only shamir admin can decrypt email" )
655655 }
656656
657657 // get target user id
@@ -716,7 +716,7 @@ func GetDecryptStatusbyUserID(c *fiber.Ctx) error {
716716 }
717717
718718 if ! IsShamirAdmin (userID ) {
719- return common .Forbidden ("only admin can get decrypt status" )
719+ return common .Forbidden ("only shamir admin can get decrypt status" )
720720 }
721721
722722 // get target user id
0 commit comments